Search tools

Cron expression for every 3 hours

0 */3 * * * triggers at minute 0 of every third hour: 00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00 and 21:00.

Runs entirely in your browser. Nothing you paste is sent to our server, stored or logged.

0 */3 * * *

When it runs next

What it means

Fixing the minute field to 0 ensures the job runs once per three-hour boundary instead of every minute during those hours. Twenty-four divides evenly by three, so the schedule repeats identically each day (8 runs per day).

It fits cache refreshes, analytics rollups and catalog feeds that do not need hourly freshness. Using a non-zero minute like 15 avoids thundering herds at 00:00 and 12:00 when many shared services run their own jobs.

Common variations

ExpressionRuns
15 */3 * * *15 minutes past every third hour
0 1-23/3 * * *Offset hours: 01:00, 04:00, 07:00, 10:00...
0 */3 * * 1-5Every 3 hours on weekdays only

As a crontab line

Add the command you want to run after the five fields, then save it with crontab -e:

0 */3 * * * /path/to/script.sh

Open it in the cron expression generator