Cron expression for every 45 minutes

0,45 * * * *

At minute 0 and 45 past every hour.

There is no exact 45-minute cron: */45 matches only :00 and :45, so the gaps alternate between 45 and 15 minutes. For a true 45-minute cadence, run every 15 minutes and let the script skip two of every three runs, or use a systemd timer with OnUnitActiveSec=45min.

Try it and tweak it

Change any field below and the preview updates. Set the time zone to match your server.

✓ Valid cron

At minute 0 and 45 past every hour.

Next 10 runs

Calculating in your browser…

Times are computed in your browser for the selected zone and are informational. The server that runs the job uses its own zone (often UTC) and cron flavour, so verify there.

Same schedule in other dialects

Unix crontab0,45 * * * *
Quartz0 0,45 * * * ?
Spring @Scheduled0 0,45 * * * ?
AWS EventBridgecron(0,45 * * * ? *)

Add it to your crontab

  1. Open your crontab with crontab -e.
  2. Add one line: 0,45 * * * * /full/path/to/command >> /var/log/job.log 2>&1
  3. Save and exit. Cron reloads automatically; confirm with crontab -l.

Need the output silenced, a lock against overlapping runs or a system crontab user column? The generator’s full crontab line builder writes it for you. Already have a crontab? Paste it into the crontab parser to check every job.

Variations

*/45 * * * *Same as 0,45 * * * *, not a steady 45-minute interval
0 0,3,6,9,12,15,18,21 * * *Every 3 hours instead (divides the day evenly)

In other schedulers

crontab line0,45 * * * * /path/to/command
Quartz0 0,45 * * * ?
Spring@Scheduled(cron = "0 0,45 * * * ?")
AWS EventBridgecron(0,45 * * * ? *)
GitHub Actions- cron: '0,45 * * * *' (UTC)
Kubernetesschedule: "0,45 * * * *"

Questions

What is the cron expression for every 45 minutes?
0,45 * * * *. At minute 0 and 45 past every hour.
How do I write it in Quartz or Spring?
Add a seconds field and use "?" for the unused day field: 0 0,45 * * * ?. In Spring: @Scheduled(cron = "0 0,45 * * * ?").
What is the AWS EventBridge version?
cron(0,45 * * * ? *). AWS uses six fields with a year at the end and needs "?" in one of the day fields.
How do I set up a cron job to run every 45 minutes?
Run crontab -e, add the line "0,45 * * * * /full/path/to/command >> /var/log/job.log 2>&1" and save. Use absolute paths, because cron runs with a minimal PATH. Check it with crontab -l.
Which time zone will it use?
The time zone of the machine or service running cron. GitHub Actions and Vercel use UTC; Kubernetes uses spec.timeZone if set. The preview above lets you pick a zone.