Published October 21, 2026
Cron Expression Examples: A Practical Cheat Sheet
Cron syntax is five fields and a handful of symbols, and somehow it still causes a steady stream of 3 a.m. surprises. This page is the reference you can keep open: the field rules, a long list of copy-paste schedules, and the quirks that differ between Linux cron, GitHub Actions, Vercel, and other schedulers.
If you want to check an expression you already have, paste it into the free crontab explainer. It translates the schedule into plain English and lists the next run times. To build the line instead, use the expression generator. To see the upcoming times in another timezone, use next run times.
The five fields
A standard crontab line looks like this:
┌───────────── minute (0–59)
│ ┌─────────── hour (0–23)
│ │ ┌───────── day of month (1–31)
│ │ │ ┌─────── month (1–12 or JAN–DEC)
│ │ │ │ ┌───── day of week (0–6, SUN–SAT; 7 is also Sunday on most systems)
│ │ │ │ │
* * * * * command-to-run
Four operators cover almost everything:
| Symbol | Meaning | Example | Reads as |
|---|---|---|---|
* |
every value | * * * * * |
every minute |
, |
list | 0 9,17 * * * |
09:00 and 17:00 |
- |
range | 0 9-17 * * * |
on the hour, 09:00 through 17:00 |
/ |
step | */15 * * * * |
minutes 0, 15, 30, 45 |
You can combine them: 0-30/10 means minutes 0, 10, 20, 30.
Copy-paste examples
Every N minutes
* * * * * # every minute
*/2 * * * * # every 2 minutes
*/5 * * * * # every 5 minutes
*/10 * * * * # every 10 minutes
*/15 * * * * # every 15 minutes
*/30 * * * * # every 30 minutes
A note on steps: */N restarts at the top of each hour. */7 runs at minutes 0, 7, 14 … 56, and then again at 0. That leaves a 4-minute gap between :56 and :00, not 7. If you need an exact interval that doesn't divide 60, use a systemd timer or a loop-based worker instead.
Hourly
0 * * * * # top of every hour
30 * * * * # half past every hour
0 */2 * * * # every 2 hours (00:00, 02:00, 04:00 …)
0 */6 * * * # every 6 hours
15 9-17 * * * # at :15, 09:15 through 17:15
Daily
0 0 * * * # midnight
0 3 * * * # 03:00, a common backup slot
30 6 * * * # 06:30
0 9,21 * * * # 09:00 and 21:00
Weekdays and weekends
0 9 * * 1-5 # 09:00 Monday–Friday
0 9 * * MON-FRI # same, with names (cronie yes; older Vixie cron no)
0 10 * * 6,0 # 10:00 Saturday and Sunday
0 18 * * 5 # 18:00 every Friday
Weekly, monthly, yearly
0 2 * * 0 # 02:00 every Sunday
0 0 1 * * # midnight on the 1st of every month
0 0 15 * * # midnight on the 15th
0 0 1 */3 * # first day of every quarter (Jan, Apr, Jul, Oct)
0 0 1 1 * # midnight on January 1st
Business-hours style
*/10 9-17 * * 1-5 # every 10 min during working hours, weekdays
0 8-18/2 * * 1-5 # every 2 hours from 08:00 to 18:00, weekdays
Macros (Vixie cron, cronie, and most Linux crons)
@reboot # when the cron daemon starts
@hourly # same as 0 * * * *
@daily # same as 0 0 * * *
@weekly # same as 0 0 * * 0
@monthly # same as 0 0 1 * *
@yearly # same as 0 0 1 1 *
@reboot does not expand to five fields. Which startup that is, and why a check cannot store that word, is cron @reboot not working. GitHub Actions does not support these macros. Use the five-field form there.
The gotchas that cause real incidents
1. Day-of-month and day-of-week are OR, not AND
This is the big one. When both the day-of-month and day-of-week fields are restricted (neither is *), standard cron runs the job when either matches.
0 9 13 * 5 # NOT "Friday the 13th"
# Runs at 09:00 on every 13th AND every Friday
There's no portable way to express "Friday the 13th" in a single crontab line. Run daily on Fridays and check the date inside the script:
0 9 * * 5 [ "$(date +\%d)" = "13" ] && /usr/local/bin/spooky-report.sh
2. % is special in crontab
In a crontab command, an unescaped % is turned into a newline, and everything after the first one is passed to the command as standard input. Escape it as \%, like in the date +\%d example above, or move the logic into a script.
3. Time zones
Linux cron uses the system time zone unless your cron supports CRON_TZ= (cronie does). Many hosted schedulers are UTC only, or UTC by default:
- GitHub Actions: UTC by default; workflows can now set an IANA
timezoneper schedule. - Vercel Cron Jobs: UTC.
- Supabase pg_cron: UTC by default (controlled by the
cron.timezonesetting). - Kubernetes CronJob: the kube-controller-manager's time zone unless you set
spec.timeZone.
If a job "runs at the wrong hour," check this before anything else. Daylight saving time can skip or repeat a local hour. The per-scheduler rules, including CRON_TZ, are in cron jobs and daylight saving time.
4. Not every scheduler is five-field cron
These rows are differences in the schedulers, from their docs as of October 21, 2026. They are not CronNudge settings.
| Scheduler | Format | Notable differences |
|---|---|---|
| Linux cron (Vixie, cronie) | 5 fields | macros supported, % escaping |
| GitHub Actions | 5 fields | no macros; minimum interval 5 minutes; runs can be delayed |
| Vercel | 5 fields | UTC; Hobby plan limited to once per day, and an hourly cron can run any time in that hour |
| Kubernetes CronJob | 5 fields | macros supported |
| Quartz (Java) | 6–7 fields | seconds first; ? required in one day field; day of week 1 = Sunday; L, W, # supported |
| Cloud Functions for Firebase | 5-field unix-cron, or App Engine text | no seconds field; time zone is separate; 2nd gen defaults to UTC, 1st gen to America/Los_Angeles |
| Spring | 6 fields | seconds first; no year field; ?, L, W, # supported |
| Hangfire | 5 fields, or 6 with seconds | Cronos; seconds first when there are six; time zone is separate and defaults to UTC |
| APScheduler | CronTrigger, or 5 via from_crontab | Monday is 0; second is its own field; timezone is separate and defaults to the local zone |
| Argo CronWorkflow | 5 fields | robfig/cron; no seconds field; timezone is separate and defaults to the controller's local time |
| AWS EventBridge | 6 fields | cron(0 12 * * ? *) with a year field; ? required in one day field |
Sunday is 1 in that six-field form. The translation into the five-field expression CronNudge stores is in monitoring EventBridge scheduled Lambda. Azure Functions timer triggers use NCRONTAB, with seconds first when the expression has six fields, and they also accept five fields. Dropping the seconds field is in monitoring Azure Functions timer triggers. Spring cron is six fields too, seconds first, and it has no year field. @daily is 0 0 0 * * *. Drop a leading 0, keep the other five, and copy zone onto the check. That mapping is in monitoring Spring scheduled tasks. GitLab pipeline schedules are five fields too, with a separate timezone and a worker that can start the pipeline later than the minute. That mapping is in monitoring GitLab scheduled pipelines. Jenkins Pipeline triggers { cron() } is five fields as well, plus an H token that stands in for a hashed minute, hour, or day, and aliases such as @hourly. Do not put that H on the check. The parser accepts it and picks a new value each time it calculates the next run, which is not Jenkins' hash of the job name. That mapping is in monitoring Jenkins Pipeline schedules. CircleCI schedule triggers on GitHub App are five-field cron in UTC, and the start can land up to 10 minutes later. That mapping is in monitoring CircleCI scheduled pipelines. Apache Airflow schedules are a cron string, a timedelta, or a preset such as @daily (0 0 * * *). croniter also accepts an extended form such as 0 0 * * MON#1, and a bare cron string in Airflow 3 is a trigger at that tick unless data intervals are on. That mapping is in monitoring Airflow Dag schedules. Prefect cron also uses croniter, and it does not accept R or H. The schedule sits on a deployment, with the timezone as a separate IANA name. That mapping is in monitoring Prefect flow schedules. Dagster schedules are five-field cron too, with execution_timezone as a separate IANA name. croniter 1.0.12 or newer also accepts @daily, @hourly, and @monthly. A schedule left stopped, or a daemon that is not running, never creates the run. That mapping is in monitoring Dagster schedules and sensors. Hangfire recurring jobs use Cronos. Five fields are the default, minute first, and a six-field expression puts seconds first. The time zone is not a field. It defaults to UTC. That mapping is in monitoring Hangfire recurring jobs. Argo CronWorkflow schedules are five fields too, minute first, with no seconds field. @daily is 0 0 * * *. @every is a duration, not five fields. The time zone is timezone, and the default is the controller's local time. That mapping is in monitoring Argo CronWorkflows. APScheduler 3.x CronTrigger fields are year, month, day, week, day of week, hour, minute, and second. The first weekday is Monday, so 0 is Monday and 6 is Sunday. CronTrigger.from_crontab() takes five fields and does not convert that numbering. The timezone is a separate argument and defaults to the scheduler's zone, which defaults to the local zone. That mapping is in monitoring APScheduler jobs. Quartz cron is six fields, or seven when a year is set. Seconds come first. One of the day-of-month and day-of-week fields has to be ?. Day of week is 1 through 7, and 1 is Sunday. Drop the seconds, replace ? with *, and translate the weekday. That mapping is in monitoring Quartz Scheduler jobs. Cloud Functions for Firebase accepts the same five unix-cron fields Cloud Scheduler uses, or an App Engine string such as every 5 minutes. There is no seconds field. The time zone is a separate tz database name. 2nd gen onSchedule defaults to UTC, and 1st gen pubsub.schedule defaults to America/Los_Angeles. That mapping is in monitoring Firebase scheduled functions.
On CronNudge, Free rejects a schedule that runs more often than every 5 minutes, so * * * * * is valid cron and is not a Free check. Pro's minimum is 1 minute. Sub-minute schedules are not a check period. Grace defaults to 5 minutes. The form offers none, 1 minute, 5 minutes, 15 minutes, and 1 hour, and the API accepts any whole number of seconds from 0 through 7 days.
Characters like L (last), W (nearest weekday), and # (nth weekday) are Quartz and EventBridge features. They are not valid in a standard Linux crontab.
5. "Last day of the month"
Standard cron has no L. The usual workaround is to run on days 28–31 and check whether tomorrow is the 1st:
0 23 28-31 * * [ "$(date -d tomorrow +\%d)" = "01" ] && /usr/local/bin/month-end.sh
(date -d is GNU coreutils. On macOS or BSD, use date -v+1d +%d.)
Validating a schedule before you ship it
- Explain it in words. Paste it into the crontab explainer and read the English version out loud. If the sentence surprises you, the expression is wrong.
- List the next few runs. Check that they land where you expect, especially around month ends and time zone boundaries.
- Test the command separately. Run it with the same user and a minimal environment:
env -i /bin/sh -c 'your command'. Most "cron doesn't work" problems are environment problems, not schedule problems.
Knowing it actually ran
A correct expression tells you when a job should run. It doesn't tell you whether it did. Cron doesn't complain when a job is skipped, the server is down, or the script exits early. The standard fix is a heartbeat, also called a dead man's switch: the job pings a URL when it finishes, and you get alerted if the ping doesn't arrive on schedule.
0 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 https://cronnudge.com/ping/<your-check-id> > /dev/null
The && means the ping only fires if the backup exits successfully. A failed, hung, or never-started backup produces no ping, and that silence is what triggers the alert.
FAQ
What does */5 * * * * mean?
Every five minutes, at minutes 0, 5, 10, and so on through 55, every hour of every day.
How do I run a cron job every 30 seconds?
Standard cron's smallest unit is one minute. A common workaround is two entries, one of them delayed: * * * * * job and * * * * * sleep 30; job. For anything sub-minute that matters, use a long-running worker or a systemd timer instead.
Is Sunday 0 or 7?
Both work on most Linux crons. 0 is the portable choice.
Why does 0 0 1 * 1 run more often than I expected?
Because day-of-month and day-of-week are combined with OR. That line runs on the 1st of every month and on every Monday.
Can I use month and day names?
Yes. JAN–DEC and SUN–SAT work in most implementations, and they aren't case-sensitive. Ranges and lists of names (MON-FRI, MON,WED) work in cronie, but classic Vixie cron only accepts single names. Numbers are the portable choice.
What time zone does cron use?
The system's local time zone unless your implementation supports CRON_TZ. Hosted schedulers like GitHub Actions and Vercel use UTC by default.
How can I tell if a cron job didn't run? Logs only help if something ran. To catch jobs that never started, add a heartbeat ping at the end of the job and alert when it's missing.
CronNudge watches scheduled jobs and alerts you when a ping is late or missing. Free covers 10 checks, with email and one Slack or Discord channel, no card needed. Pro is $12 a month for 100 checks, and adds signed webhooks and the API. Try it or keep using the crontab explainer.