What Is a Cron Expression? A Plain-English Guide with Examples
A cron expression is a short piece of text that tells a computer when to run a job. It is used by Linux servers, hosting panels, CI tools, and cloud schedulers. Once you know what the five fields mean, you can read almost any schedule at a glance.
The five fields
A standard cron expression has five fields separated by spaces. Reading from left to right, they are minute, hour, day of month, month, and day of week.
A star (*) means every possible value for that field. So * * * * * means every minute of every hour of every day.
- Minute: 0 to 59
- Hour: 0 to 23
- Day of month: 1 to 31
- Month: 1 to 12 (or JAN to DEC)
- Day of week: 0 to 6, where 0 is Sunday (7 is also accepted as Sunday)
Lists, ranges and steps
A comma makes a list: 0 9,17 * * * runs at 09:00 and 17:00. A dash makes a range: 0 9 * * 1-5 runs at 09:00 from Monday to Friday.
A slash makes a step: */15 * * * * runs every 15 minutes, and 0 */2 * * * runs at the start of every second hour.
Common schedules
These examples cover most everyday needs.
- */5 * * * *: every 5 minutes
- 0 * * * *: at the start of every hour
- 30 6 * * *: every day at 06:30
- 0 9 * * 1-5: weekdays at 09:00
- 0 0 1 * *: at midnight on the first day of each month
- 0 0 * * 0: at midnight every Sunday
A common trap: day of month and day of week
When you set both the day of month and the day of week, standard cron runs the job when either one matches, not when both match. For example, 0 0 13 * 5 runs on the 13th of every month and also on every Friday, not only on Friday the 13th.
Another trap is time zones. Most servers run cron in UTC, so a job set for 09:00 may run at a different local time than you expect.
Check before you deploy
A small mistake in one field can make a job run far too often or never at all. Paste your expression into the Cron Expression Explainer to see it in plain English and to list the next run times before you save it.

