Developer

Cron Every 5 Minutes — and the Rest of Cron Syntax, Explained

You need a job to run every 5 minutes. The five fields of a cron expression, the */5 pattern everyone searches for, and the day-of-week gotcha that surprises even experienced engineers. Applying these recommended techniques ensures high visual quality, faster page load speeds, and reliable performance across modern desktop and mobile web browsers.

Awais 2 min readPublished
Cron Every 5 Minutes — and the Rest of Cron Syntax, Explained

You need a job to run every 5 minutes. The answer is */5 * * * * — but if that line looks like line noise, this guide will make cron expressions readable in about five minutes (fittingly).

The five fields

A standard cron expression is five fields separated by spaces, read left to right:

┌───────── minute        (0–59)
│ ┌─────── hour          (0–23)
│ │ ┌───── day of month  (1–31)
│ │ │ ┌─── month         (1–12)
│ │ │ │ ┌─ day of week   (0–7, 0 and 7 = Sunday)
│ │ │ │ │
* * * * *

An asterisk means "every". Beyond plain numbers, three operators cover almost everything: a range (1-5), a list (1,15,30), and a step (*/5, meaning every 5th value).

The schedules everyone needs

  • */5 * * * * — every 5 minutes.
  • 0 * * * * — every hour, on the hour.
  • 0 0 * * * — every day at midnight.
  • 0 9 * * 1-5 — weekdays at 09:00.
  • 0 0 1 * * — first day of every month at midnight.
  • 30 2 * * 0 — Sundays at 02:30.

The gotcha: day-of-month OR day-of-week

Here is the rule that surprises almost everyone. When you restrict both the day-of-month field and the day-of-week field, standard cron runs the job when either one matches — not both. So 0 0 13 * 5 does not mean "Friday the 13th"; it fires on every 13th and on every Friday. If you need the intersection, check one condition inside your script instead.

Also remember: cron runs in the server's timezone, which is very often UTC. A job scheduled for 9:00 may fire at 2 PM your time. Check with the timezone your scheduler actually uses.

Verify before you deploy

The cheapest cron bug to fix is the one that never ships. Paste your expression into our Cron Expression Generator to see it decoded into plain English along with the next three times it would actually fire — in your local timezone, so mismatches jump out immediately.

Picking the right short interval

Short cadences and their costs
ExpressionRuns per hourFreshnessTypical fit
* * * * *60Seconds apartOnly when required; usually too heavy
*/5 * * * *12Up to 5 minMonitoring, queues, market data
*/10 * * * *6Up to 10 minSyncs, ETL, cache refreshes
*/15 * * * *4Up to 15 minOpportunistic jobs
*/30 * * * *2Up to 30 minReports, digests

Jobs that genuinely want every 5 minutes

  • Availability checks where a 5-minute blind spot is acceptable.
  • Consumers of a message queue maintained by polling.
  • Metrics collectors pulling counters into a dashboard.
  • Cache warmers refreshing frequently-requested endpoints.
If freshness can tolerate 10 minutes, */10 halves the load for the same outcome — the every-10-minutes guide walks through when that trade is right.

Tools mentioned

More reading

View all guides
Free Developer Tools Online: 2026 Developer Toolkit & Guides
Developer

Free Developer Tools Online: 2026 Developer Toolkit & Guides

Explore 30+ free browser-based developer tools: JSON formatters, Base64 converters, cron generators, regex testers, SQL formatters, and hash generators.

3 min readPublished
CSS Border Radius: 15 Copy-Paste Examples
Developer

CSS Border Radius: 15 Copy-Paste Examples

15 modern CSS border radius examples: rounded cards, pills, circle avatars, asymmetrical organic blobs, and fancy 8-value border radius shapes.

3 min readPublished
Percent Encoding Reference Table (Every Character)
Developer

Percent Encoding Reference Table (Every Character)

Complete percent encoding ASCII reference table: quick lookup for spaces, slashes, ampersands, punctuation, and UTF-8 special characters in URLs.

3 min readPublished
URL Encoding Explained: %20 vs +, Reserved Characters & Rules
Developer

URL Encoding Explained: %20 vs +, Reserved Characters & Rules

Complete guide to percent encoding in URLs: learn when to use %20 vs +, how reserved characters like & and ? work, and how to avoid encoding bugs.

3 min readPublished
Cron Every Hour, Day & Midnight: All Daily Schedules
Developer

Cron Every Hour, Day & Midnight: All Daily Schedules

Master standard daily cron schedules: cron every hour, every day at midnight, twice a day, and custom hourly intervals with copy-paste examples.

4 min readPublished
Cron Expression Cheat Sheet — Copy-Paste Schedule Examples
Developer

Cron Expression Cheat Sheet — Copy-Paste Schedule Examples

Free cron expression cheat sheet with copy-paste examples for every 5 minutes, hourly, daily at midnight, weekdays only, and more.

5 min readPublished
Cron Every 10 Minutes — Syntax, Examples and Best Practices
Developer

Cron Every 10 Minutes — Syntax, Examples and Best Practices

Use the cron expression */10 * * * * to run jobs every 10 minutes, plus examples for common schedules and troubleshooting tips.

3 min readPublished
Why CSV Is Tricky to Parse: Delimiters, Quotes and Headers
Developer

Why CSV Is Tricky to Parse: Delimiters, Quotes and Headers

Why CSV files are harder to read correctly than they look, how to choose the right JSON shape, and the mistakes to avoid.

2 min readPublished