CronTool
Cron expression editor & debugger
Question

Is 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.

Answer

In this case, you will need two cron jobs:


# 1st part: every 5 minutes from 1PM to 5PM
*/5 13-16 * * * command

# 2nd part: every 5 minutes from 5PM to 5:45 PM
0-45/5 17 * * * command
Why this matters

The reason you need two lines: cron applies the step to a single minute range (0-45/5) within a single hour range (17). You can't mix “run every 5 min for the whole hour from 13:00 to 16:59 PLUS only the first 45 min of 17:00” in one cron line — the minute field is a single expression that applies identically to every selected hour.


The pattern 0-45/5 is shorthand for “0, 5, 10, 15, 20, 25, 30, 35, 40, 45” — ten runs in the 17:00 hour. Combined with13-16 at */5, you get 48 runs (12 each in 13, 14, 15, 16) plus 10 in 17 = 58 runs across 4h45m. Verify on the calendar that the boundary at 17:00 lines up the way you expect (it does — both lines run at 17:00 if you use */5 13-17 instead, hence the explicit split).


For more variations on “every N minutes” patterns, see the cron every 5 minutes guide.

Read the dedicated guide: Cron every 5 minutes.

Cron schedules used

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?
QuestionHow do I set a cron script for every 5 minutes without using the minutes divisible by 5?
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?
QuestionCan I set up a cron job to run every 15 minutes throughout the day, except for 3:00 AM? I have another task that I want to run at 3:00 AM and don't want these two conflicting.

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-every-number-of-minutes-in-a-specific-time-range

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