How to Read a Cron Expression (With Examples)
Developer · Published October 1, 2026 · Updated October 24, 2026 · 4 min read
Written by Akinrinmade Michael
Cron is the scheduler built into Linux, macOS and most hosting platforms. A cron expression is a short line of five fields that tells it when to run a job. It looks cryptic at first, but there are only a few rules to learn, and once you have them you can read almost any schedule at a glance.
The five fields
Read an expression from left to right. Each field is separated by a space:
minute (0-59) | hour (0-23) | | day of month (1-31) | | | month (1-12) | | | | day of week (0-7, Sunday is 0 or 7) | | | | | * * * * *
A job runs when the current time matches every field. So 30 14 * * * means minute 30 of hour 14 on any day: 14:30 every day. The most common slip is putting the hour first. Minute comes before hour, so 14 30 * * * isn't 14:30. It asks for hour 30, which doesn't exist, and most systems reject it. Write 30 14 * * * instead.
The four special characters
*means "every value". A star in the hour field means every hour.,makes a list.0,30in the minute field means minute 0 and minute 30.-makes a range.1-5in the day-of-week field means Monday to Friday./sets a step.*/15in the minute field means every 15 minutes, and10-40/10means 10, 20, 30 and 40.
Steps always count from the start of the range, not from when you saved the job. */15 in the minute field means minutes 0, 15, 30 and 45 of every hour, even if you added the job at 10:07.
Schedules you'll see all the time
| Expression | What it does | Typical use |
|---|---|---|
* * * * * | Every minute | Quick tests only |
*/5 * * * * | Every 5 minutes | Health checks, polling an API |
0 * * * * | At the start of every hour | Hourly reports, cache refresh |
0 9 * * 1-5 | 09:00 on weekdays | Morning digest emails |
30 2 * * * | 02:30 every day | Nightly backups |
0 0 * * 0 | Midnight every Sunday | Weekly cleanup |
30 2 1 * * | 02:30 on the 1st of each month | Monthly billing runs |
0 0 1 1 * | Midnight on January 1st | Yearly rollovers |
There are also shortcuts. @daily is the same as 0 0 * * *, and @hourly, @weekly, @monthly and @yearly work the same way. @reboot runs once when the machine starts. Month and weekday names such as JAN and MON work in most versions too.
A rule that surprises people
When both the day-of-month and the day-of-week fields are set, standard cron runs the job when either one matches, not both. The expression 0 0 1 * 1 doesn't mean "the first of the month, if it's a Monday". It runs on the first of every month and on every Monday.
Standard cron also has no way to say "the last day of the month". A common workaround is to run the job on days 28 to 31 and have the command check whether tomorrow is the 1st before it does anything.
Time zones and daylight saving
Cron uses the time zone of the machine it runs on, which is often UTC on servers. If your server follows local time, a job at 02:30 may be skipped or run twice when the clocks change, because that hour doesn't exist on one night in spring and happens twice on one night in autumn. Running important jobs in UTC avoids the problem. The guide to time zones and daylight saving explains why it happens.
Not every scheduler reads cron the same way
- Linux crontab and most hosts: five fields, as described above.
- GitHub Actions: five fields, always in UTC, and runs can start a few minutes late when the platform is busy.
- Quartz (Java) and Spring: six or seven fields, with seconds first and a
?character for "no specific value". - AWS EventBridge: six fields, with a year at the end and a
?in either the day-of-month or day-of-week field. - Kubernetes CronJob: five fields, in the controller's time zone unless you set one.
If a schedule you copied from one system behaves strangely in another, count the fields first.
When a job doesn't run
- Check that the cron service is running and that the expression is saved.
crontab -llists what's installed for your user. - Read the log. On many Linux systems you can search the system log for CRON to see each attempt and any error.
- Use full paths. Cron starts with a bare-bones environment, so a command that works in your terminal can fail because it can't find a program. Write
/usr/bin/python3, notpython3. - Escape percent signs. Inside a crontab line, an unescaped
%is treated as a new line. Write\%instead. - Capture the output. Add
>> /tmp/job.log 2>&1to the end of the command so you can see errors you'd otherwise never find. - Run the exact command by hand as the same user, to rule out permission problems.
Try it yourself: paste any expression into the Cron Expression Explainer to see it in everyday words and check the next run times before you deploy. The timestamp converter helps when you need to line up a run time with a log entry.