Cron Every 2 Hours

Configure a cron job to run every 2 hours using 0 */2 * * *. Detailed field breakdown, scheduling tips, and real-world application examples.

Cron Expression

0 */2 * * *

Field Breakdown

FieldValueMeaning
Minute0At 0
Hour*/2Every 2nd hour
Day of Month*Every day of the month (1–31)
Month*Every month (1–12)
Day of Week*Every day of the week (Sun–Sat)

Detailed Explanation

The cron expression 0 */2 * * * schedules a task to run once every two hours, at the top of every even-numbered hour.

Field-by-field breakdown:

  • 0 (Minute): At minute 0 only. The task fires at the start of the hour.
  • */2 (Hour): Every 2nd hour, starting from hour 0. The step value /2 triggers execution at hours 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, and 22.
  • * (Day of Month): Every day from 1 through 31. No restriction on the day of the month.
  • * (Month): Every month from January through December. No restriction on the month.
  • * (Day of Week): Every day of the week from Sunday through Saturday. No restriction on the day.

This means your task will execute 12 times per day, once every two hours starting at midnight. This schedule is well suited for medium-frequency tasks that need more breathing room between runs than an hourly schedule provides. It balances regularity with resource conservation, making it a solid choice for data synchronization and report generation. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.

Use Case

Useful for running a web scraper that collects competitor pricing data from multiple sources without overwhelming their servers.

Try It — Interactive Builder

Every 2 hours

**/5*/10*/15*/300
**/2*/3*/6*/120
*1151,15*/2
*11,4,7,101,7
*1-50,615

Next 10 Executions

1.Mon, Mar 16, 2026, 10:00 PM
2.Tue, Mar 17, 2026, 12:00 AM
3.Tue, Mar 17, 2026, 02:00 AM
4.Tue, Mar 17, 2026, 04:00 AM
5.Tue, Mar 17, 2026, 06:00 AM
6.Tue, Mar 17, 2026, 08:00 AM
7.Tue, Mar 17, 2026, 10:00 AM
8.Tue, Mar 17, 2026, 12:00 PM
9.Tue, Mar 17, 2026, 02:00 PM
10.Tue, Mar 17, 2026, 04:00 PM

Ctrl+Shift+C to copy expression

Customize this expression