Cron expression for every 2 minutes

*/2 * * * *

Every 2 minutes.

The step */2 in the minute field matches 0, 2, 4 … 58: 30 runs an hour on even minutes. Use 1-59/2 for odd minutes.

Try it and tweak it

Change any field below and the preview updates. Set the time zone to match your server.

✓ Valid cron

Every 2 minutes.

Next 10 runs

Calculating in your browser…

Times are computed in your browser for the selected zone and are informational. The server that runs the job uses its own zone (often UTC) and cron flavour, so verify there.

Same schedule in other dialects

Unix crontab*/2 * * * *
Quartz0 */2 * * * ?
Spring @Scheduled0 */2 * * * ?
AWS EventBridgecron(*/2 * * * ? *)

Variations

1-59/2 * * * *Every 2 minutes on odd minutes
*/2 8-18 * * *Every 2 minutes between 08:00 and 18:59

In other schedulers

crontab line*/2 * * * * /path/to/command
Quartz0 */2 * * * ?
Spring@Scheduled(cron = "0 */2 * * * ?")
AWS EventBridgecron(*/2 * * * ? *)
GitHub Actions- cron: '*/2 * * * *' (UTC)
Kubernetesschedule: "*/2 * * * *"

GitHub Actions won’t run schedules more often than every 5 minutes.

Questions

What is the cron expression for every 2 minutes?
*/2 * * * *. Every 2 minutes.
How do I write it in Quartz or Spring?
Add a seconds field and use "?" for the unused day field: 0 */2 * * * ?. In Spring: @Scheduled(cron = "0 */2 * * * ?").
What is the AWS EventBridge version?
cron(*/2 * * * ? *). AWS uses six fields with a year at the end and needs "?" in one of the day fields.
Which time zone will it use?
The time zone of the machine or service running cron. GitHub Actions and Vercel use UTC; Kubernetes uses spec.timeZone if set. The preview above lets you pick a zone.