Search tools

Cron expression for every 2 minutes

*/2 * * * * runs a command on every even minute of every hour, starting at :00.

Runs entirely in your browser. Nothing you paste is sent to our server, stored or logged.

*/2 * * * *

When it runs next

What it means

Writing */2 in the minute field steps through 0 to 59 by two, firing at :00, :02, :04 and so on for 30 runs per hour. That gives twice the breathing room of a per-minute poller for queue workers, webhook relays and fast health checks.

Watch runtime overlap: if your script takes 90 seconds under load, a two-minute schedule leaves only 30 seconds of slack before the next run starts. Wrap the command with flock or a lock file if overlapping runs would corrupt state.

Common variations

ExpressionRuns
1-59/2 * * * *Every odd minute instead of every even minute
*/2 8-18 * * 1-5Every 2 minutes during weekday working hours
*/5 * * * *Every 5 minutes for lighter polling

As a crontab line

Add the command you want to run after the five fields, then save it with crontab -e:

*/2 * * * * /path/to/script.sh

Open it in the cron expression generator