Cron Expression Explainer

Translate a cron schedule into plain English and see its next run times.

minute hour day-of-month month day-of-week — or @daily, @hourly…
Runs
At 09:00, Monday through Friday
Next runs (your time zone)
…

Field by field

FieldValueAllowed
Minute00–59
Hour90–23
Day of month*1–31
Month*1–12 or JAN–DEC
Day of week1-50–7 or SUN–SAT (0 and 7 = Sunday)

Cron syntax

┌──── minute (0–59)
│ ┌──── hour (0–23)
│ │ ┌──── day of month (1–31)
│ │ │ ┌──── month (1–12)
│ │ │ │ ┌──── day of week (0–7, Sunday = 0 or 7)
* * * * *
  • * — every value
  • 1,15 — a list
  • 9-17 — a range
  • */10 or 0-30/10 — a step

Shortcuts: @hourly, @daily, @weekly, @monthly, @yearly.

Common pitfalls

Jobs run with a minimal environment — use full paths to commands and files. Redirect output somewhere (>> /var/log/job.log 2>&1) so failures aren’t silent. And remember a job at 2:30 may run twice or not at all on daylight saving changeover nights.

Common questions

What does */5 mean in cron?

Every fifth value of that field. */5 in the minute field runs at minutes 0, 5, 10 … 55.

How do I run a cron job on weekdays only?

Put 1-5 in the day-of-week field: 0 9 * * 1-5 runs at 9:00 Monday through Friday.

What happens if I set both day of month and day of week?

Standard cron runs when either matches. 0 0 13 * 5 runs on the 13th of every month and also every Friday — not only on Friday the 13th.

What time zone does cron use?

The server’s local time zone, unless your scheduler says otherwise (many cloud schedulers use UTC). The next-run list here is in your browser’s time zone.

MathApps is free and ad-free for now. If it helped, buy us some art supplies — supporters never see ads, even if we add them.