Skip to the tool
DevToolBench

Cron Every 15 Minutes

A quarter-hour schedule, with the offsets.

minute hour day-of-month month day-of-week

At every 15th minute past every hour.

Fields

minute
*/15
hour
*
day of month
*
month
*
day of week
*

Next 5 runs

Times shown in your own timezone.

Common schedules

Quarter-hour schedules

ExpressionWhat it doesCopy
*/15 * * * *At :00, :15, :30 and :45 of every hourAt every 15th minute past every hour.
5,20,35,50 * * * *The same four slots, five minutes laterAt minute 5, 20, 35 and 50 past every hour.
*/15 9-17 * * 1-5Every quarter hour, office hours onlyAt every 15th minute past every hour from 9 through 17 on every day-of-week from Monday through Friday.
*/15 * * * 1-5Every quarter hour, weekdays onlyAt every 15th minute past every hour on every day-of-week from Monday through Friday.

Everything runs in your browser. Nothing you type is sent to a server.

Found a bug in this tool? Report it.

The quarter-hour schedule

A cron every 15 minutes schedule fires four times an hour, at :00, :15, :30 and :45. Fifteen divides 60, so the gap stays even when the hour rolls over — the same guarantee that makes 5, 10, 20 and 30 safe and makes 7 and 25 quietly wrong. Ninety-six runs a day is frequent enough for a sync to feel current and rare enough that a slow run is unusual rather than routine.

Four times an hour is not the same promise

The expression schedules four appointments, not four executions. If a run beginning at :45 takes twenty minutes, cron starts the :00 run while the previous one is still going, because cron never waits. Two copies then share whatever the script assumed was private to it — a temporary file, a cursor in a table, an output path.

The fix is a lock, not a lower frequency. Wrapping the command in flock -n means the overlapping run exits immediately instead of doubling up, and a skipped quarter hour is a far cheaper failure than two writers.

Moving off the top of the hour

Everything else on the machine also wants :00. Backups, agents, log shipping and the neighbouring cron entries all fire on the same tick, and the result is a machine that is briefly busy four times an hour and idle in between. A list of four minutes keeps the cadence and moves it:

5,20,35,50 * * * *

Same four runs an hour, five minutes clear of the crowd. Across a fleet, giving each host a different offset spreads the load without changing what any of them do.

Narrowing to the hours that matter

Ninety-six runs a day mostly happen while nobody is watching. Constraining the hour field to a working range and the day-of-week field to Monday through Friday drops that to thirty-six runs on five days a week — a reduction of about eighty per cent for a schedule that still feels live during the hours anyone cares about. The variants table above has both forms, and each reading comes from the same parser that powers the panel at the top.

What the four runs cost

Ninety-six executions a day is small if the job is a query against a warm index and large if it opens a connection pool, fetches a remote page and writes a file. The number worth estimating is not the average duration but the worst one you have seen, because that is the run that will collide with the next appointment. If the slowest run you can remember is over five minutes, a quarter-hourly schedule is already closer to its limit than it looks, and the lock in the previous section stops being optional.

Neighbouring intervals

Fifteen minutes sits between two common choices. If a sync feels stale at a quarter of an hour, the 5-minute schedule triples the resolution for triple the runs. If it is doing nothing most times it wakes, the 30-minute schedule halves the cost for the same shape. For anything the table does not cover, paste the line into the cron expression generator and read the sentence it produces before it reaches a crontab.

Frequently asked questions

Is a quarter-hourly schedule the same as four times an hour?

Only when the hour is undisturbed. The expression pins the job to four fixed minutes of the clock, so a run that starts at :45 and takes twenty minutes does not delay :00, it overlaps it. Four times an hour is a count; a quarter-hourly schedule is four appointments. When a job can run long, the difference is the bug.

How do I keep a quarter-hourly job inside working hours?

Restrict the hour and the day-of-week fields rather than the minute field. Adding an hour range of 9 to 17 and a day range of Monday to Friday turns 96 runs a day into 36 a day on five days, without touching the cadence itself. The variants above show the exact line.

Do the four runs have to be at :00, :15, :30 and :45?

No, and moving them is often the better choice. A list of four minutes lets you place them anywhere in the hour while keeping the fifteen-minute gap, which spreads load away from the top of the hour where every other agent on the box is already working.

What is the shortest cron interval available?

One minute. There is no seconds field in the five-field crontab format, so anything faster needs a different mechanism entirely. Fifteen minutes is comfortably inside what cron does well, and unlike the sub-minute case there is no workaround to weigh up.

Related tools

Updated