Skip to content
Cron Expression Generator

Cron expression for every 2 minutes

The cron expression to run a job every 2 minutes is:

*/2 * * * *

Every 2 minutes.

The step */2 matches the even minutes 0, 2, 4 … 58 — 30 runs per hour. To run on the odd minutes instead (useful for splitting two jobs so they never start together), use 1-59/2.

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

Every 2 minutes.

العربية

كل دقيقتين.

    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
      Minute*/2Every 2 (0, 2, 4 … 58)
      Hour*Every hour
      Day of month*Every day of the month
      Month*Every month
      Day of week*Every day of the week

      Copy-paste examples

      Linux crontab

      # crontab -e
      */2 * * * * /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: "*/2 * * * *"
        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: '*/2 * * * *'   # 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
      Every 2 minutes, minutes 1 through 59 past the hour.
      Every 2 minutes, between 9:00 AM and 5:59 PM, Monday through Friday.
      Every 2 minutes, Monday through Friday.
      Every 2 minutes, between 12:00 AM and 6:59 AM.

      Frequently asked questions

      What does */2 * * * * mean in cron?

      Every 2 minutes. The five fields are minute */2, hour *, day of month *, month * and day of week *.

      How do I run a cron job every 2 minutes in Linux?

      Run crontab -e, add the line */2 * * * * /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 */2 * * * * 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 →