Skip to content
Cron Expression Generator

Cron expression for the 1st and 15th of every month

The cron expression to run a job the 1st and 15th of every month is:

0 0 1,15 * *

At 12:00 AM, on days 1 and 15 of the month.

The comma lists two days of the month, so the job runs at midnight on the 1st and the 15th — 24 times a year, the usual rhythm for semi-monthly payroll, invoices and statements. Do not write it as a step: */15 in the day-of-month field counts from day 1 and matches the 1st, 16th and 31st. And leave the day-of-week field as *; adding 1-5 to skip weekends would make cron run on every weekday as well, because the two day fields are combined with OR.

Test and customize this schedule

Format
Valid

5 fields (minute hour day month weekday), or 6 with seconds first. Names like MON-FRI, macros like @daily and full crontab lines work. Press / to focus.

English

At 12:00 AM, on days 1 and 15 of the month.

العربية

في تمام الساعة 12:00 ص، في الأيام 1 و15 من الشهر.

    Quick presets

    Visual cron generator

    Pick options for each field — the expression above updates instantly.

    Next 5 executions

    Local time:

      Cheat sheet

      *
      Any value
      ,
      List — 1,15,30
      -
      Range — 1-5
      /
      Step — */10
      ?
      No specific value (day fields)
      @daily
      Macro for 0 0 * * *

      Field-by-field breakdown

      FieldValueMeaning
      Minute00
      Hour00
      Day of month1,151 and 15
      Month*Every month
      Day of week*Every day of the week

      Copy-paste examples

      Linux crontab

      # crontab -e
      0 0 1,15 * * /usr/local/bin/my-job.sh >> /var/log/my-job.log 2>&1

      Kubernetes CronJob

      apiVersion: batch/v1
      kind: CronJob
      metadata:
        name: my-job
      spec:
        schedule: "0 0 1,15 * *"
        concurrencyPolicy: Forbid
        jobTemplate:
          spec:
            template:
              spec:
                restartPolicy: OnFailure
                containers:
                  - name: my-job
                    image: busybox:1.36
                    command: ["sh", "-c", "date; echo Hello from cron"]

      GitHub Actions

      on:
        schedule:
          - cron: '0 0 1,15 * *'   # always UTC

      GitHub Actions evaluates schedules in UTC, does not accept macros such as @daily, and will not run workflows more often than every 5 minutes; runs can also be delayed during periods of high load.

      Common variations

      Click an expression to load it into the tool above.

      Cron expressionSchedule
      At 9:00 AM, on days 1 and 15 of the month.
      At 12:00 AM, on days 1 and 16 of the month.
      At 12:00 PM, on day 15 of the month.
      At 9:00 AM, on days 1, 10, and 20 of the month.

      Frequently asked questions

      What does 0 0 1,15 * * mean in cron?

      At 12:00 AM, on days 1 and 15 of the month. The five fields are minute 0, hour 0, day of month 1,15, month * and day of week *.

      How do I run a cron job the 1st and 15th of every month in Linux?

      Run crontab -e, add the line 0 0 1,15 * * /path/to/command, then save and exit. Use absolute paths, redirect output to a log file, and confirm it runs with grep CRON /var/log/syslog.

      When will 0 0 1,15 * * run next?

      It depends on the current time and the time zone of the machine running cron. The calculator on this page shows the next 5 run times in your local time zone; on a server, cron uses the system time zone, which is often UTC.

      Related cron schedules

      Browse all cron expression examples →