Crontab Next Run Calculator

Enter a cron expression and base time to see the upcoming run times.

How it is calculated

The tool reads five fields in the order minute hour day-of-month month day-of-week. Each field accepts *, a number, a range a-b, a list a,b,c and a step after * or a range, such as */15 or 1-5/2, as cronie's crontab(5) (the Vixie cron family) documents. Months and weekdays may also be written as the first three letters of their English names in any case, alone, in ranges or in lists (jan-mar, mon,wed,fri). A step after a single number, such as 5/10, is not in crontab(5) and cronie rejects it, so the tool says so and shows the range to write (5-59/10). Day-of-week runs 0 to 6, and 7 is also Sunday. Starting at the base time (read as UTC, or the current UTC time if you leave it empty), it moves forward from the next whole minute and lists each matching minute. When day-of-month and day-of-week are both restricted, a day matches if either one does, as in classic cron; if either field starts with * both must match. Up to 20 times are listed (3 by default), searching up to eight years ahead, so a February 29 is always found. When fewer runs than asked fall in those eight years, the list ends with “Only N runs within 8 years”. Out-of-range values, shortcuts like @daily and cronie's random ~ ranges show no result. A date that never exists, such as February 31, passes the range check, so the tool searches the eight years and says “No run within 8 years”.

Worked example

Cron line 0 3 * * 1-5 means minute 0, hour 3, any day of the month, any month, Monday to Friday. The base time is 2026-10-20 12:00 UTC, a Tuesday, and 03:00 that day has already passed. The next match is Wednesday, so the tool returns 2026-10-21 03:00 UTC, followed by 2026-10-22 and 2026-10-23, then Monday 2026-10-26 (Saturday and Sunday are skipped), and 2026-10-27 as the fifth of the five requested runs.

Try this example →

Common mistakes

  • Expecting 0 0 13 * 5 to mean "Friday the 13th only". When both day fields are restricted, cron fires on the 13th or on any Friday. Starting from November 14, 2026, the list shows every Friday and also Sunday December 13.
  • Forgetting that all times are UTC. A job meant for 03:00 in your own time zone will show a different hour here.
  • Writing 5/10 for “every 10 minutes from minute 5”. crontab(5) puts a step only after * or a range, and cronie rejects the line; write 5-59/10.
  • Typing @daily. Shortcuts are not read; write 0 0 * * *. Names such as MON or jan-mar are fine.
  • Putting six fields (with seconds) into a five-field cron line, which returns no result, or a date that never exists such as 0 0 31 2 *, for which the tool says there is no run within 8 years.

Sources

About this calculator

A standard Unix crontab expression uses five space-separated fields — minute, hour, day-of-month, month, and day-of-week — each accepting numbers, ranges, lists, wildcards (*), and step values after a wildcard or a range (like */15 for every 15 units), with month and weekday names allowed, as cronie's crontab(5) documents them to define a recurring schedule, such as “0 3 * * 1-5” for 3 AM on weekdays. Working out exactly when such an expression will next fire requires parsing all five fields and simulating time forward, which is easy to get wrong by hand, especially with step values or day-of-week/day-of-month interactions.

Sysadmins, backend developers, and DevOps engineers use this calculation whenever they write or review a cron job — for scheduled backups, log rotation, batch data processing, or automated deployments — to confirm the schedule actually matches what they intended before it runs unattended on a production server.

This calculator parses your 5-field crontab expression against a base UTC time and lists the next several scheduled run times, letting you catch a mistyped cron line before it causes a job to run at 3 AM instead of 3 PM, or every minute instead of every hour.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators