Skip to the content

Cron Expression for Every 30 Minutes

*/30 * * * * runs a job twice an hour, on the hour and at half past. See the next runs, and how it differs from 30 * * * *.

Every 30 minutes

FieldValueMatches
Minute*/300 and 30
Hour*every hour
Day of month*every day of the month
Month*every month
Day of week*every day of the week

Next 10 runs

    Cron goes by the clock of the machine it runs on. These are the runs on a machine in your time zone.

    Share this tool:TwitterFacebookLinkedInWhatsAppEmail

    Twice an hour

    In */30 * * * * the */30 in the minute field stands for minutes 0 and 30, so the job runs on the hour and at half past, 48 times a day. 0,30 * * * * is the same schedule written as a list.

    ExpressionRuns
    */30 * * * *Every 30 minutes
    0,30 * * * *Every 30 minutes
    30 * * * *At minute 30 of every hour
    15,45 * * * *At minutes 15 and 45 of every hour
    */30 9-17 * * *Every 30 minutes from 09:00 to 17:30

    Not the same as 30 * * * *

    30 * * * * has no slash and runs once an hour, at half past. That is half as often as intended, and easy to miss because the job does run.

    Half past is not thirty minutes later

    The two runs are tied to the clock. Saving the crontab at 10:10 gives runs at 10:30 and 11:00, not at 10:40. To get the half hours at a quarter past and a quarter to, name the minutes: 15,45 * * * *.

    With a limit on the hours

    */30 9-17 * * * runs from 09:00 up to and including 17:30, because the hour field covers all of hour 17. For a last run at 17:00, use 9-16 and add a second line 0 17 * * *.

    The cron expression explainer has the full syntax: the five fields, lists, ranges and steps, and how day of month and day of week work together.

    See all 12