"Every hour" is the schedule people reach for first, and it is also the one with the most confidently wrong expressions in the wild. The mistake is understandable: cron steps look like they should express it. If */15 means every 15 minutes, surely */60 means every 60 minutes, and surely that is hourly. It is not, at least not in the way it appears. The clean way to write an hourly job is shorter than the clever way. This guide gives the correct expression and takes the */60 confusion apart. It also shows how to confirm the schedule with the free Cron Expression Builder on Ovatly. You do that before the expression goes anywhere near a server.
Contents
- Quick answer
- What hourly actually means in five fields
- The */60 confusion, taken apart
- How to set up and check an hourly job, step by step
- Worked example: reading the next runs
- Limitations and honest notes
- Common mistakes
- FAQs
- Conclusion
Quick answer
The expression for every hour is:
0 * * * *
Pin the minute field to 0 and leave the hour field as an asterisk. The job fires at minute 0 of every hour. Do not write it as */60 * * * *. The minute field only runs from 0 to 59. A step of 60 never reaches a second value. If you want the job offset within the hour, change the pinned minute instead, so 30 * * * * is hourly at half past. Paste either form into the Cron Expression Builder and the next five run times will confirm the spacing before you rely on it.
What hourly actually means in five fields
Read 0 * * * * field by field, in the fixed order of minute, hour, day of month, month, day of week. The minute is pinned to 0. The hour is an asterisk, meaning every hour. The three date fields are asterisks, meaning every day of every month, whatever the weekday. So the schedule is: at minute 0, of every hour, on every day. That is exactly "every hour", as one restriction and four open fields.
Two consequences follow. First, cron schedules against the clock, not against the previous run. An hourly job fires at 01:00, 02:00, 03:00, not sixty minutes after the last run finished. So a job that takes seventy minutes overlaps its own next firing. Second, the alignment is fixed by the minute you pin. Pinning 0 aligns the job to the top of every hour, with no drift. Each firing is read from the clock rather than counted from the last one.
The */60 confusion, taken apart
The step form */15 in the minute field means this. Step through the minute range, 0 to 59, in jumps of 15. That lands on 0, 15, 30 and 45. The reasoning that produces */60 assumes the same trick scales: step through the range in jumps of 60 to get one firing an hour. But the range ends at 59. Starting at 0 and adding 60 leaves the field entirely, so the step lands on 0 and nothing else. */60 * * * * therefore fires at minute 0 of every hour. Those are the same times as 0 * * * *. It works by accident of arithmetic rather than by meaning what it says.
That accident is why the form is worth avoiding. A reader meeting */60 assumes steps express intervals. They may then write */90 expecting a job every hour and a half. That lands on minute 0 alone and silently becomes hourly at the top of the hour. Steps restart at the top of every hour too. */45 fires at minute 0 and minute 45. That gives gaps of 45 minutes then 15 minutes, not a steady 45. Intervals longer than the field itself have no step expression. The honest vocabulary is this: pin the minute for alignment. Step the hour field when you want spacing in hours, as in 0 */2 * * * for every two hours.
How to set up and check an hourly job, step by step
- Write the expression directly: minute pinned to your chosen minute, hour as an asterisk, and the three date fields as asterisks. For on the hour, that is
0 * * * *. - Open the Cron Expression Builder and paste the expression into the lower field.
- Read the plain-English description the Cron Expression Builder returns and confirm it describes an hourly schedule, not an every-minute or daily one.
- Check the next five run times listed below the description. They should be consecutive hour marks, each exactly one hour after the last, at your pinned minute.
- Convert for your server before saving. The listed times are in your local time zone, and most servers schedule in UTC. Note which clock the saved expression will follow.
Worked example: reading the next runs
Paste 0 * * * * into the builder partway through an afternoon. The next-run list shows the pattern that defines the schedule. Five consecutive firings sit exactly one hour apart. They continue into the evening and past midnight without any change in spacing. The day fields being asterisks is visible in the list itself, because the runs cross midnight into the next date without pausing.
Contrast that with the classic error, * * * * *. Its next five runs are one minute apart, because an asterisk minute means every minute. Sixty times the intended load, from a single missing 0. The next-run list makes the difference obvious at a glance, which is why the check is worth ten seconds even for a schedule this simple.
Limitations and honest notes
The builder covers standard five-field cron: minute, hour, day of month, month, day of week. Seconds and year fields from Quartz-style schedulers are not included. Nothing in an hourly expression needs them. But an expression copied from a Quartz system has to be reduced to five fields before it can be checked here.
Next run times are calculated in your browser's local time. Servers usually run cron in UTC. An hourly job is hourly on either clock. But the alignment you verified is read against the scheduler's zone. A job pinned to minute 0 fires on the hour everywhere; what shifts between zones is which runs land in your working day.
Cron also offers no catch-up and no overlap protection. If the machine is off at a firing time, that run is simply missed. If a run is still going when the next hour arrives, the new one starts anyway. Guarding with a lock is a job for the command itself, not the expression.
Common mistakes
- Writing five asterisks.
* * * * *is every minute, sixty firings an hour. Hourly needs the minute pinned. - Writing
*/60and trusting the pattern. It lands on minute 0 by arithmetic accident, teaches a rule that does not exist, and leads directly to broken forms like*/90. - Stepping the wrong field.
0 */60 * * *steps the hour field, whose range is 0-23. It lands on hour 0 alone. That is a daily job at midnight, not an hourly one. - Expecting sixty minutes after the last run. Cron reads the clock. A long-running hourly job overlaps itself unless the command guards against it.
- Forgetting the server clock. The schedule is hourly in any zone, but set-time schedules will follow UTC on most servers, not the local times shown in the builder.
FAQs
What is the cron expression for every hour?
0 * * * *. The minute field is pinned to 0 and the hour field is an asterisk. The job fires at minute 0 of every hour: 01:00, 02:00, 03:00 and so on, every day.
*Does /60 * * * * also run hourly?
In effect it lands on minute 0, because the minute field only spans 0-59 and a step of 60 reaches no second value. It is still the wrong way to write it. It looks like a general every-60-minutes pattern that does not exist in a single field. It also confuses anyone who reads it later. Write 0 instead.
How do I run a job every hour but at half past?
Change the pinned minute: 30 * * * * fires at minute 30 of every hour. Any fixed minute works the same way, so 15 * * * * is quarter past every hour.
How do I run a job every two hours instead?
Step the hour field and keep the minute pinned: 0 */2 * * * fires at minute 0 of every second hour. The step belongs on the field you want to space out.
Why does my hourly job fire at a different clock time on the server? The builder lists next runs in your local time zone, while most servers schedule in UTC. The job still fires on the hour, but on the server's hour, which may be offset from the times you saw listed.
Conclusion
Hourly is one pinned field: minute 0, everything else open. It takes the discipline to write it that plainly. The alternative is reaching for a step that only looks like an interval. Building a schedule field by field rather than copying this one? how to write a cron expression from scratch walks through the full method. The full set of guides for this category lives in the Developer Tools guides archive.