Back to blog

Reference · Jun 30, 2026

Cron syntax cheat sheet: real-world examples & common patterns

The expressions teams actually use, searchable and copyable, plus the part most cheat sheets skip: how the same line reads in Linux crontab, Quartz, AWS, GitHub Actions, Vercel and Kubernetes.
crontap.com / blog
Cron syntax reference with copyable examples: every 5 minutes, hourly, daily, weekdays, business hours, first and last day of the month. Plus the dialect gotchas as of November 2026: Quartz and AWS count Sunday as 1 and need ?, Vercel Cron Jobs reject MON and JAN, GitHub Actions stops at every 5 minutes, and day-of-month plus day-of-week means OR.

You know exactly what you want: the sync every 15 minutes during office hours, the invoice run on the 1st, the report every Monday at nine. What you can't quite remember is which of the five stars is the weekday, and whether the scheduler you're pasting into reads them the same way the last one did.

This page answers both. It covers the syntax once, gives you a searchable library of the expressions teams actually use, and then spends real time on the part most cheat sheets skip: the same line behaves differently in Linux crontab, Quartz, AWS, GitHub Actions, Vercel and Kubernetes. If you only want the dense reference grid, the CronTool cheat sheet is that. If you'd rather not write cron at all, the natural-language cron generator turns "every weekday at 9:30 in Berlin" into an expression.

Five fields, read left to right

A standard cron expression is five fields separated by spaces. Read it left to right, from the smallest unit to the largest, with the day of week tacked on at the end.

┌───────── minute        (0-59)
│ ┌─────── hour          (0-23)
│ │ ┌───── day of month  (1-31)
│ │ │ ┌─── month         (1-12 or JAN-DEC)
│ │ │ │ ┌─ day of week   (0-6, Sunday is 0; crontab also takes 7)
│ │ │ │ │
* * * * *

A * means "any value", so * * * * * runs every minute of every day. Each field you fill in narrows that down: 30 9 * * 1-5 is minute 30, hour 9, any day of the month, any month, Monday to Friday. Edit the one below and watch the field meanings and the next runs change.

Try it: edit the expression

  • 30

    minute

    minute 30

  • 9

    hour

    hour 9

  • *

    day of month

    every day of month

  • *

    month

    every month

  • 1-5

    weekday

    weekday Mon through Fri

Next 5 runs in America/New_York

    Schedule this

    The special characters, and which ones travel

    Four characters are universal. The rest are extensions, and the scheduler you paste into decides whether they mean anything.

    Cron special characters and where they work
    SymbolMeaningExampleWorks in
    *Any value* * * * * every minuteEverywhere
    ,List0,30 * * * * on :00 and :30Everywhere
    -Range0 9-17 * * * hourly, 09:00 to 17:00Everywhere
    /Step*/15 * * * * every 15 minutesEverywhere (AWS writes 0/15)
    ?No specific value0 12 ? * MON noon on MondaysRequired in Quartz and AWS
    LLast0 0 L * * last day of the monthCrontap, Quartz, AWS
    #Nth weekday of the month0 9 * * MON#1 first MondayCrontap, Quartz, AWS
    WNearest weekday0 9 15W * * weekday nearest the 15thQuartz, AWS
    @Shorthand macros@daily is 0 0 * * *Linux crontab, Kubernetes, Crontap

    My rule: if the expression has to survive a move between platforms, stick to the first four. Reach for L and # when the scheduler you're on supports them, because the alternative (run daily and check the date in code) is more moving parts than the problem deserves.

    Find the expression you need

    Search by what you want to happen ("backup", "weekday", "quarterly") or by the expression itself. Copy a row, or press the arrows to send it to the translator further down and see how it reads in your scheduler.

    Find an expression

    40 of 40 patterns

    • * * * * *Every minute
    • */2 * * * *Every 2 minutes
    • */5 * * * *Every 5 minutes
    • */10 * * * *Every 10 minutes
    • */15 * * * *Every 15 minutes
    • */30 * * * *Every 30 minutes
    • 0,30 * * * *On the hour and half past
    • 5-59/15 * * * *Every 15 minutes, offset by 5
    • 0 * * * *Every hour, on the hour
    • 30 * * * *Every hour at half past
    Every row is plain 5-field cron, so it reads the same in Linux crontab, GitHub Actions, Kubernetes and Crontap. Check Quartz, AWS and Vercel in the translator.

    The sections below explain the families in the library and the traps in each one.

    Minute-level patterns: cron counts from the top of the hour

    ExpressionRunsTypical use
    * * * * *Every minuteHealth checks, dev testing
    */2 * * * *Every 2 minutesPolling a job's status
    */5 * * * *Every 5 minutesData sync, polling an API
    */15 * * * *Every 15 minutesStatus checks, light syncs
    */30 * * * *Every 30 minutesMedium-frequency syncs
    0,30 * * * *On the hour and at half pastTwice hourly, on the dot

    */5 means "every minute divisible by 5", counted from minute 0 of each hour. It's wall-clock time, not "five minutes after I created this", which is why two schedules created at different moments still fire together.

    The step only behaves when it divides 60 evenly. */7 fires at :00, :07 and so on up to :56, then again at :00, so one gap per hour is 4 minutes instead of 7. If you need a true 7-minute rhythm, cron is the wrong tool; pick 5 or 10 and move on. The every 5 minutes recipe has the copy-paste version for each platform.

    Hourly patterns: step form, and stay off :00

    ExpressionRunsTypical use
    0 * * * *Every hour on the hourCache refresh, digests
    7 * * * *Every hour at :07Same, without the :00 crowd
    0 */2 * * *Every 2 hoursModerate-frequency tasks
    0 */4 * * *Every 4 hours (6 a day)Periodic summaries
    0 */6 * * *Every 6 hours (4 a day)Reconciliation, cleanups
    0 */12 * * *Every 12 hoursTwice-daily jobs

    I'd write 0 */4 * * * over 0 0,4,8,12,16,20 * * *. They fire at exactly the same times, but the step form tells the next reader the intent at a glance. The same divide-evenly rule applies: 0 */5 * * * runs at 00, 05, 10, 15 and 20, then waits four hours for midnight.

    Here's the opinionated bit: if the exact minute doesn't matter, don't use :00. Everyone else's hourly job fires at the top of the hour too, so that's when APIs rate-limit and shared runners queue. GitHub's docs say outright that scheduled workflows can be delayed during high load, and that high load includes the start of every hour (more in the GitHub Actions cron drift post). Minute 7 costs nothing.

    Daily patterns: the time is in the scheduler's timezone

    ExpressionRunsTypical use
    0 0 * * *Midnight every dayNightly batch, rollups
    0 2 * * *02:00 every dayBackups, quiet-hour work
    30 9 * * *09:30 every dayStandup reminder
    0 18 * * *18:00 every dayEnd-of-day report
    0 0,12 * * *Midnight and noonTwice daily

    The hour field has no timezone attached. If the scheduler runs in UTC and your team is in New York, 0 9 * * * fires at 04:00 or 05:00 local time depending on the season. The timezone section below covers who defaults to what.

    One more reason to keep important jobs away from 01:00-02:59 in a local timezone: that's where daylight saving lives. On the spring night, 02:00 to 02:59 doesn't exist in the US or central Europe (01:00 to 01:59 in London), and in autumn an hour repeats. Linux crontab skips jobs in the missing hour and runs jobs in a repeated hour twice. 03:30 sidesteps both.

    Business hours and weekdays

    ExpressionRuns
    0 9-17 * * 1-5Every hour from 09:00 to 17:00, Mon-Fri
    */15 9-16 * * 1-5Every 15 minutes, 09:00 to 16:45, Mon-Fri
    30 8 * * 1-508:30 on weekdays
    0 9,13 * * 1-509:00 and 13:00 on weekdays
    0 17 * * 517:00 on Fridays

    Ranges are inclusive, and that bites with steps. */15 9-17 * * 1-5 doesn't stop at 17:00: hour 17 is in range, so it also runs at 17:15, 17:30 and 17:45. If the last run should be 17:00, use */15 9-16 * * 1-5 plus a separate 0 17 * * 1-5, or accept the 16:45 finish.

    1-5 is Monday to Friday and 6,0 is the weekend. Linux crontab also accepts 7 for Sunday, but Kubernetes and Vercel document the field as 0-6, so 0 is the portable choice. The every weekday recipe has the per-platform versions.

    Weekly patterns

    ExpressionRunsTypical use
    0 9 * * 109:00 every MondayWeekly kickoff report
    0 17 * * 517:00 every FridayWeekly wrap-up
    0 12 * * 1,3,5Noon Mon, Wed and FriThree times a week
    0 10 * * 6,010:00 on weekendsWeekend-only task
    0 0 * * 0Sunday midnightStart-of-week reset

    Names like MON and FRI read better, and most schedulers accept them. Vercel Cron Jobs and Vercel Schedules don't (numbers only), and Quartz and AWS number the week from Sunday as 1, so 1-5 there means Sunday to Thursday. If you write names for Quartz and AWS, you can't get that off-by-one wrong.

    Monthly patterns, and the last-day problem

    ExpressionRunsTypical use
    0 0 1 * *Midnight on the 1stMonthly billing run
    0 9 1 * *09:00 on the 1stMonthly report email
    0 0 1,15 * *Midnight on the 1st and 15thTwice-monthly payout
    0 0 1 */3 *1st of Jan, Apr, Jul and OctQuarterly job
    0 0 1 1 *Midnight on 1 JanuaryAnnual reset

    Five plain fields can't say "the last day of the month" or "the first Monday". Where the scheduler supports it, L and # do it directly: 0 0 L * * and 0 9 * * MON#1 both work in Crontap, Quartz and AWS (with their extra fields). Everywhere else, run on 28-31 and let the job exit unless tomorrow is the 1st. The last day of the month recipe and the first day of the month recipe have the date-check lines.

    Common real-world patterns

    These are the expressions people reach for most. Steal them.

    What you wantExpression
    Health check every minute* * * * *
    Poll an external API every 5 minutes*/5 * * * *
    Sync every 15 minutes in business hours, weekdays*/15 9-16 * * 1-5
    Warm the cache every 2 hours0 */2 * * *
    Nightly backup at 03:3030 3 * * *
    Daily digest at 08:30 on weekdays30 8 * * 1-5
    Weekly report on Monday at 09:000 9 * * 1
    Monthly invoices on the 1st at midnight0 0 1 * *
    Quarterly reset on the 1st of Jan, Apr, Jul and Oct0 0 1 */3 *

    Same expression, different scheduler

    Cron is a family of dialects that agree on the basics and disagree on the edges. Here's how the schedulers you're most likely to paste into differ, from each vendor's docs as of November 2026: crontab(5), Quartz, EventBridge Scheduler, GitHub Actions, Vercel Cron Jobs and Kubernetes.

    How cron dialects differ, as of November 2026
    SchedulerFieldsSundayNamesL # WShortest run
    Crontap5, plus @daily macros0 or 7YesL and #1 hour free, 1 minute paid
    Linux crontab50 or 7YesNo1 minute
    Quartz / Spring6-7, seconds first1YesYes1 second
    AWS EventBridge6 in cron(), year last1YesYes1 minute
    GitHub Actions50YesNo5 minutes
    Vercel Cron Jobs (legacy)50NoNo1/day Hobby, 1 minute Pro
    Vercel Schedules (beta)50NoNo15 min Hobby, 1 minute Pro
    Kubernetes CronJob5, plus @hourly macros0YesNo1 minute

    Type or pick an expression and you get the version each one expects, with the gotchas that apply. Rows from the library above land here when you press their arrows.

    One schedule, seven schedulers

    Rules as documented, Nov 2026

    Linux crontab

    Same
    0 9 * * 1-5

    System timezone, or CRON_TZ= on cronie

    Quartz / Spring

    Rewritten
    0 0 9 ? * MON-FRI

    Set on the trigger in code

    • Seconds come first, and one day field must be ?.
    • Weekday numbers start at SUN=1, one higher than crontab.

    AWS EventBridge

    Rewritten
    cron(0 9 ? * MON-FRI *)

    UTC, or ScheduleExpressionTimezone on Scheduler

    • Six fields: a year comes last, and one day field must be ?.

    GitHub Actions

    Same
    0 9 * * 1-5

    UTC, or a timezone: key on the entry

    • Expect delays at the top of the hour; default branch only.

    Vercel Cron Jobs (legacy)

    Same
    0 9 * * 1-5

    Always UTC

    Vercel Schedules (beta)

    Same
    0 9 * * 1-5

    Any IANA timezone, per schedule

    • Each run starts inside a jitter window: 15 min on Hobby, 1 min by default on Pro.

    Kubernetes CronJob

    Same
    0 9 * * 1-5

    .spec.timeZone (stable since v1.27)

    Crontap

    Same
    0 9 * * 1-5

    Any IANA timezone, per schedule

    Translations follow each scheduler's documented rules as of November 2026. Copy a version, then confirm the next runs in your scheduler's own preview before you rely on it.

    The three differences that cause most real incidents:

    • Sunday is not always 0. Quartz and AWS count from Sunday as 1, so 1-5 copied from crontab runs Sunday to Thursday there. Writing names avoids the shift.
    • Both day fields set. Crontab and GitHub Actions OR them, Quartz and AWS demand ? in one, and Vercel won't deploy the expression. The same line can run five extra days a month, or fail to save.
    • Extra fields. A Quartz expression starts with seconds and an AWS one ends with a year, so a six-field string means nothing until you know where it came from. Paste a Quartz line into AWS and every field shifts by one.

    If you're moving a whole set of jobs, the cron migrator converts Vercel, GitHub Actions, EventBridge and crontab configs between each other. The Quartz and AWS expression tools on CronTool go deeper on those two dialects.

    Getting timezones right

    A cron expression has no timezone. It means "this pattern, on whatever clock the scheduler runs", and the defaults differ (as of November 2026):

    • Linux crontab uses the system timezone, or CRON_TZ= at the top of the table on cronie.
    • GitHub Actions runs in UTC unless you add timezone: with an IANA name next to the cron: entry.
    • AWS EventBridge Scheduler evaluates in UTC unless you set ScheduleExpressionTimezone.
    • Kubernetes uses the controller manager's local zone unless the CronJob sets .spec.timeZone, stable since v1.27. CRON_TZ= inside the schedule is rejected.
    • Vercel Cron Jobs (legacy) are always UTC. Vercel Schedules, in public beta as of November 2026, takes an IANA timezone per schedule and follows daylight saving (UTC if you leave it out). The Vercel cron limits post shows what a UTC-only entry does to a 07:00 report.
    • Containers follow the image: Alpine stays on UTC until you install tzdata and set TZ. The Docker cron jobs guide covers the Debian, Alpine and supercronic setups.

    Daylight saving is where a fixed UTC entry hurts. 0 14 * * 1-5 is 09:00 in New York in winter and 10:00 in summer, so either the handler computes offsets or someone edits the schedule twice a year. A scheduler that stores an IANA zone per job follows the change for you. If your users span regions, give each region its own schedule with the same expression and its own zone.

    Five-field vs six-field cron (seconds)

    Some systems add a field, and they don't agree on where:

    • Quartz (Java, Spring's @Scheduled) puts seconds first and allows an optional year at the end: 0 0 9 ? * MON-FRI is 09:00 on weekdays.
    • AWS EventBridge puts a year last inside cron(): cron(0 9 ? * MON-FRI *).
    • node-cron and similar libraries accept an optional leading seconds field, so check the library's docs before assuming.
    */30 * * * * *       # every 30 seconds in a seconds-first library
    0/30 * * * * ?       # the same in Quartz

    Crontap's parser accepts a leading seconds field too, but no schedule runs more than once a minute, and the same goes for most hosted schedulers. If you need sub-minute precision, you want a queue or a long-running worker, not cron.

    Debugging cron expressions

    Before you trust an expression, look at its next few runs. The free cron debugger on CronTool takes an expression and a timezone and shows a plain-English reading plus the upcoming runs, so a schedule that over-fires or never fires shows up before a real job does. To compare several schedules side by side, use the multiple cron jobs view.

    When the expression is right and the job still doesn't run, the problem is usually the environment: PATH, permissions, the timezone, or a daemon that isn't running. The cron job not running checklist walks through those in order.

    Gotchas we've hit the hard way

    • Both day fields set means OR. 0 0 1 * 1 is "the 1st, or any Monday" in crontab. See the first-Monday trap above.
    • Sunday is 0, 7 or 1 depending on the scheduler. Use 0 in five-field cron, and names in Quartz and AWS.
    • % in a crontab command is a newline unless you escape it as \%, so date +%F silently breaks. This is a crontab command quirk, not an expression one, which is why it's so hard to spot.
    • @reboot is a crontab hook, not a schedule. @daily and @hourly work in crontab, Kubernetes and Crontap; GitHub Actions and Vercel want the five fields.
    • Scheduled GitHub workflows switch themselves off. In a public repository with no activity for 60 days, GitHub disables them.
    • Runs can overlap. If a job sometimes takes longer than its interval, two copies run at once unless the scheduler or the job prevents it. Make the job idempotent, or take a lock at the start.

    When cron isn't the answer

    • Sub-minute precision. Use a queue or a long-running loop.
    • Event-driven work. Use a webhook or a pub/sub trigger.
    • Workflows with dependencies. Use a workflow engine (Airflow, Temporal, Inngest, Trigger.dev).
    • Durable, multi-hour retries. Hosted schedulers like Crontap retry failed calls with exponential backoff, but a real queue is better when retry state must survive restarts or span many hours.

    For everything else (polling, nightly batches, weekly reports, hourly health checks, recurring webhooks), cron is still the right answer after 50 years.

    Running these schedules

    If you already have a machine with crontab, paste the line and you're done. The Linux cron guide covers crontab -e, logs and permissions.

    If the job is an HTTP endpoint, a hosted scheduler saves you the machine. Crontap takes any expression above (L and MON#1 included) with an IANA timezone per schedule, lets you press Perform test before saving, and retries 5xx responses, timeouts and network errors with exponential backoff by default. When the attempts run out, it alerts you by email on every plan, or in Slack, Discord or Telegram on paid plans. The free plan covers 2 schedules, monitors or heartbeats combined, running hourly or slower; paid plans start at $2.99/mo and run every minute.

    Prefer a guided setup? There are walkthroughs for Zapier, n8n and Make.com, and the use cases index has a page per job type.

    FAQ

    Cron syntax questions

    What is the cron expression for every 5 minutes?
    */5 * * * *. The */5 in the minute field means every fifth minute counted from the top of the hour, so it fires at :00, :05, :10 and so on, not five minutes after you saved the schedule. GitHub Actions accepts it, since 5 minutes is its documented minimum; Vercel Cron Jobs only allow it on Pro.
    What does * * * * * mean in cron?
    Every minute of every hour of every day. The five fields are minute, hour, day of month, month and day of week, and * means any value, so nothing narrows it down.
    How do I write a cron job for weekdays only?
    Put 1-5 in the last field: 0 9 * * 1-5 runs at 09:00 Monday to Friday. Linux crontab, GitHub Actions and Kubernetes also accept MON-FRI, but Vercel Cron Jobs and Vercel Schedules only take numbers. Quartz and AWS count Sunday as 1, so in those two write MON-FRI rather than shifting the numbers by hand.
    Why does my cron job run on the 1st and on every Monday?
    Because classic cron ORs the two day fields. When both day of month and day of week are restricted, as in 0 9 1 * 1, the job runs when either one matches. Quartz and AWS refuse the combination (one of the two must be ?), and Vercel Cron Jobs and Vercel Schedules reject it outright. For the first Monday, use 0 9 * * MON#1 where # is supported (Crontap, Quartz, AWS) or check the date inside the job.
    Is Sunday 0 or 7 in cron?
    In Linux crontab, both. Kubernetes and Vercel document day of week as 0-6, so 0 is the portable choice. Quartz and AWS EventBridge count 1-7 starting from Sunday, which makes Sunday 1 and Monday 2 there.
    What is the difference between five-field and six-field cron?
    Standard cron has five fields, minute through day of week. Quartz adds seconds at the front (and an optional year at the end), so 0 0 9 ? * MON-FRI is 09:00 on weekdays. AWS EventBridge also has six fields, but its extra one is a year at the end, inside cron(...). A six-field string is ambiguous until you know which scheduler reads it.
    How do I run a cron job on the last day of the month?
    Standard five-field cron has no last-day token. Use L in the day-of-month field where it is supported: 0 0 L * * in Crontap, with seconds and ? in Quartz, and inside cron(...) on AWS. In plain crontab, GitHub Actions, Vercel or Kubernetes, run on the 28th to the 31st and exit early unless tomorrow is the 1st.
    What timezone does a cron expression use?
    Whatever the scheduler runs in, because the expression itself has no timezone. As of November 2026, Linux crontab uses the system zone (or CRON_TZ on cronie), GitHub Actions and EventBridge Scheduler default to UTC with an optional IANA zone, Kubernetes reads .spec.timeZone, Vercel Cron Jobs (legacy) are always UTC, and Vercel Schedules (public beta) takes an IANA timezone per schedule. Crontap stores an IANA timezone on each schedule and follows daylight saving changes.
    Can cron run every 30 seconds?
    Not in five-field cron, whose smallest unit is the minute. Quartz can (0/30 * * * * ?), and so can libraries that accept a seconds field. Hosted schedulers, Crontap included, stop at once a minute. If you really need sub-minute work, a queue or a long-running worker is the better tool.

    Keep the expression, fix the clock

    Send the weekday 09:00 report in New York time, all year.

    Paste the URL the job lives at, keep the five fields you just built, and pick America/New_York so 09:00 stays 09:00 through daylight saving. Press Perform test before you save; Crontap retries failed runs and alerts you by email, or in Slack, Discord or Telegram on paid plans, once the attempts run out.

    Free for 2 schedules or monitors. No card.

    POSThttps://your-app.com/api/reports/daily-digest
    Active

    0 9 * * 1-5America/New_York

    Next run in ...

    Run history

    From the blog

    Read the blog

    Guides, patterns and product updates.

    Tutorials on scheduling API calls, webhooks and automations, plus deep dives into cron syntax, timezones and reliability.

    Product

    Introducing Crontap status pages

    Publish uptime monitors and heartbeats on a public page at crontap.page, pick a template from Clean to a split-flap departures board, and add incidents, maintenance and a badge.

    Product

    Slack, Discord and Telegram alerts are here

    Connect a chat channel once, then route schedule, uptime and heartbeat alerts with defaults, per-job overrides and test sends. See what each alert looks like in Slack, Discord, Telegram and email.

    Product Updates

    Introducing AI Integrations

    Transform a schedule's HTTP response with a plain-English prompt, return text or JSON, and forward it to Slack, Make, n8n, or your own endpoint. Test on any tier; saving is a Pro feature.