CronTool
Cron expression editor & debugger
Question

How do I set a cron script for every 5 minutes without using the minutes divisible by 5?

Answer

Easy. Use the following cron:


2-59/5 * * * * script

Generally speaking, to run a script every nth minute starting at m, with 1≤m<n, the cron expression is:


m-59/n * * * * script

The dash represents every minute, starting at the given value and ending at 59, inclusive on both ends.

Why this matters

The default */5 * * * * fires at minutes 0, 5, 10, …, 55 — every “divisible by 5” minute. To shift the cadence, explicitly anchor the start: 2-59/5 fires at 2, 7, 12, 17, …, 57. Same frequency, different phase.


A common reason to do this: spreading load across many machines so they don't all hammer a shared resource at the same minute. Pair it with a small random sleep at the start of the script for an extra jitter: sleep $((RANDOM % 30)). Or, on Jenkins, use the H hash modifier — see the Jenkins cron guide for that.


One subtle trap: 2-59/5 only fires inside that range. If you need “every 5 minutes starting from minute 58” (i.e. 58, 03, 08, …) — which crosses the hour boundary — you have to use a list: 3,8,13,18,23,28,33,38,43,48,53,58 * * * *. Cron does not wrap step ranges.

Read the dedicated guide: Cron every 5 minutes.

Cron schedule used

Calendar

View future cron matches in a calendar

April 2026

Showing next 1000 cron schedules

Loading...

See this cron expression on the calendar → view example

Related cron questions

Other answers and worked examples for the most confusing cron expressions.

QuestionI want to execute a task every 20 minutes, starting at 5 past the hour, is it possible to achieve this with Cron?
QuestionI am trying to add a crontab entry to execute a script every 30 minutes, on the hour and 30 minutes past the hour or something similar. How can I do this?
QuestionIs it possible to use cron to accomplish the following particular use case? I desire for the scheduler to trigger every five minutes from a specific start time, such as 1:00 PM to 5:45 PM.
QuestionI am looking to have a script run every 5 minutes, beginning at 13:02, and another script to run every 5 minutes starting at 13:04, so the second script runs two minutes after the start of the first job. How can I accomplish this?

Ready to schedule it?

Point Crontap at any URL. Pick any cron. Done.

WordPress, Shopify, Railway, Cloud Run, Vercel, HubSpot, Ghost, your own box. If it answers HTTP, Crontap can drive it on a clock you can read, in the timezone that actually matters, and page you when something breaks.

Free forever tier ・ No credit card required

Your next schedule
GET/wp-cron.php?doing_wp_cron=1

Schedule

every 5 minutes

Next run

in 23s

Permalink: https://tool.crontap.com/help/cron-job-expression-how-to-run-a-script-every-nth-minutes

Apihustle Logo

This tool is part of the Apihustle suite - a collection of tools to test, improve and get to know your API inside and out.

  • Clobbr logo

    Clobbr

    The app & CLI tool to test API endpoint speed.

    Visit
  • Crontap logo

    Crontap

    Schedule recurring API calls using cron syntax.

    Visit
  • CronTool logo

    CronTool

    Debug multiple cron expressions on a calendar.

    Visit

  • Page AI

    AI Website Generator that designs and writes clean code.

    Visit
  • Shipixen

    Generate customized boilerplates in minutes.

    Visit
  • Page UI

    Landing page UI components for React & Next.js

    Visit