Seconds to Days Converter

Convert time between seconds and days using the exact 1 day = 86,400 seconds factor.

Convert Exact factor Breakdown view
Rate this calculator · 5.0 (1)

Seconds ↔ Days

1 day = 86,400 sec exactly · breakdown D HH:MM:SS

Instructions — Seconds to Days Converter

1

Pick a direction

Toggle between Seconds → Days and Days → Seconds. The converter resets to a sensible default for each direction (86,400 sec or 1 day).

2

Enter a value

Type seconds (as an integer) or days (decimal allowed). The headline shows the converted unit, and the breakdown panel below splits it into D HH:MM:SS.

3

Use the quick picks

One-click presets: 60 s (one minute), 3,600 s (one hour), 86,400 s (one day), 604,800 s (one week), one million seconds (~11.6 days), and 31,536,000 s (one common year).

Quick rule: seconds ÷ 86,400 = days. 1 million sec / 86,400 ≈ 11.57 days.
Reverse: days × 86,400 = seconds. 7 days × 86,400 = 604,800 sec.

Formulas

One mean solar day equals 86,400 seconds by international convention. The factor is exact for civil timekeeping and ignores leap seconds, which is the right choice for almost every calculation outside professional metrology.

Seconds to Days
$$ \text{Days} = \frac{\text{Seconds}}{86\,400} $$
Divide seconds by 86,400. 86,400 ÷ 86,400 = 1 day. 1,000,000 ÷ 86,400 ≈ 11.574 days.
Days to Seconds
$$ \text{Seconds} = \text{Days} \times 86\,400 $$
Multiply days by 86,400. 7 days × 86,400 = 604,800 sec. 365 days = 31,536,000 sec.
Breakdown to D HH:MM:SS
$$ \text{D} = \lfloor \tfrac{S}{86400} \rfloor, \;\; \text{H} = \lfloor \tfrac{S \bmod 86400}{3600} \rfloor $$
Use floor division and modulo. After extracting days, the remainder feeds the hours calculation. Minutes and seconds repeat the pattern with 60-base divisors.
Day Definition
$$ 1\,\text{day} = 24 \times 60 \times 60 = 86\,400\,\text{sec} $$
A civil day is 24 hours, each 60 minutes, each 60 seconds. The chain product is 86,400. This is fixed in ISO 8601 and is the basis of Unix time and SI hour notation.
Week and Year
$$ 1\,\text{week} = 604\,800\,\text{sec}, \;\; 1\,\text{year} \approx 31\,536\,000 $$
7 days × 86,400 = 604,800 sec. A common 365-day year is 31,536,000 sec; a 366-day leap year is 31,622,400 sec.
Mental Anchor
$$ 10^6\,\text{sec} \approx 11.6\,\text{days}, \;\; 10^9\,\text{sec} \approx 31.7\,\text{yr} $$
One million seconds is just under twelve days. One billion seconds is just under 32 years. These anchors help frame big timestamp numbers.

Reference

Common Time Conversions
DescriptionSecondsDaysD HH:MM:SS
1 minute600.000690d 00:01:00
1 hour3,6000.041670d 01:00:00
8-hour workday28,8000.3330d 08:00:00
1 day86,4001.0001d 00:00:00
1 week604,8007.0007d 00:00:00
30 days2,592,00030.00030d 00:00:00
1 million sec1,000,00011.57411d 13:46:40
1 common year31,536,000365.000365d 00:00:00
1 leap year31,622,400366.000366d 00:00:00
1 billion sec1,000,000,00011,574.07~31.7 years

Conversion tables — logs and timestamps

Server uptime, retention windows, and Unix epochs are the most common places seconds and days collide.

Uptime
SLADowntime/day
99% (two nines)864 sec
99.9%86.4 sec
99.99%8.64 sec
99.999% (five nines)0.864 sec
99.9999%0.086 sec
Retention
WindowSeconds
7 days604,800
30 days2,592,000
90 days7,776,000
1 year31,536,000
7 years (GDPR)220,752,000

Note: This converter uses civil seconds (86,400 per day). Leap seconds (added by IERS every few years) are ignored, which matches Unix time, ISO 8601, and almost every production system.

Article — Seconds to Days Converter

Seconds to Days Conversion Guide

One mean solar day equals 86,400 seconds (24 hours × 60 minutes × 60 seconds). To convert seconds to days, divide by 86,400. To convert days back to seconds, multiply by 86,400. The factor is exact for civil time and ignores leap seconds, which is the correct choice for Unix timestamps, log analysis, server uptime, and almost every production calculation.

A million seconds works out to about 11.6 days. A billion seconds is roughly 31.7 years, just under a single generation. These two anchors are worth memorizing because they show up constantly in engineering estimates, billing periods, and rough mental conversions.

What the seconds to days conversion is

The seconds to days conversion changes a duration from the SI second — the base unit of time in the International System — into days, the conventional civil unit. NIST defines the second through the cesium-133 atomic transition (9,192,631,770 cycles), but for human-scale work that definition rolls up cleanly to 86,400 seconds per day.

The conversion shows up in three big use cases: parsing or building Unix timestamps, computing uptime or downtime under a service-level agreement, and translating raw duration data from APIs that return seconds. Every cloud monitoring tool reports something in seconds; every project plan you read is in days.

Did you know

The 86,400-second day predates atomic clocks. Babylonian astronomers split day and night into 12 hours each, and Greek and medieval Arab scholars kept the 60-base subdivisions. When the second became the SI base unit in 1967, the 86,400 chain was already universal in calendars and clocks.

How to convert seconds to days

Divide seconds by 86,400 for days. Multiply days by 86,400 for seconds. The factor is fixed, exact, and language-agnostic.

Seconds to days cheat sheet
days = seconds / 86400 seconds = days * 86400
1 day = 86,400 sec 1 week = 604,800 sec
1 year = 31,536,000 sec leap = 31,622,400 sec

For a breakdown (D HH:MM:SS), apply floor division and modulo repeatedly. Days = floor(s / 86,400). Remaining seconds = s mod 86,400. Hours = floor(remainder / 3,600). Minutes = floor(next remainder / 60). Seconds = final remainder. Every modern programming language has a built-in for this; Python’s datetime.timedelta and JavaScript’s Math.floor handle it in two lines.

Tip

If you only need the integer days from a seconds count, use floor division (// in Python, Math.floor() in JavaScript, FLOOR() in SQL). Plain division can leak microscopic floating-point error that bites you on equality comparisons.

Seconds to days in Unix timestamps

Unix time counts seconds since 00:00:00 UTC on 1 January 1970. Divide a Unix timestamp by 86,400 to get the day number relative to the epoch. The value at midnight on 1 January 2026 is 1,767,225,600 seconds, which equals 20,454 days since the epoch.

  • 0 = 1970-01-01 00:00 UTC (epoch start)
  • 1,000,000,000 = 2001-09-09 (the “billennium”)
  • 1,500,000,000 = 2017-07-14
  • 1,700,000,000 = 2023-11-15
  • 2,000,000,000 = 2033-05-18
  • 2,147,483,647 = 2038-01-19 (32-bit signed overflow)

The 2038 problem comes from a 32-bit signed integer holding the timestamp. After 03:14:07 UTC on 19 January 2038, the counter wraps to a negative value, which crashes legacy code. The standard fix is to use 64-bit integers, which push the rollover past 290 billion years — safely beyond practical concern.

Seconds to days for server uptime

SLAs are advertised as “three nines” or “five nines”, but the actual budget is in seconds. A 99.99% uptime SLA allows 8.64 seconds of downtime per day, 52.6 minutes per year. A 99.999% (“five nines”) SLA allows only 0.864 seconds per day — about five minutes per year total.

99% (two nines)
3.65 days/yr
864 sec downtime/day
99.999% (five nines)
5.26 min/yr
0.86 sec/day

Cloud providers usually report uptime per month rather than per day. The math is identical: 30 days × 86,400 = 2,592,000 seconds per month. Divide promised downtime by that figure to get the percentage. Most SaaS service credits are calculated to the second, then converted to a dollar figure based on monthly recurring revenue.

The leap second question

Earth’s rotation slows by about 1.7 milliseconds per century. To keep clock time aligned with the planet, the International Earth Rotation Service (IERS) occasionally inserts a “leap second” into UTC. The last one was on 31 December 2016. Twenty-seven leap seconds have been added since 1972.

Leap seconds break naive math

Unix time ignores leap seconds — it pretends every day is exactly 86,400 seconds. For 99% of code this is fine. For precision astronomy, GPS, and financial timestamping, you need TAI (International Atomic Time) instead, which counts every leap second. Mixing the two creates silent drift over years.

Mental anchors for big numbers

Memorize three numbers and most seconds-to-days work becomes intuition. A million seconds is 11.574 days — just under two weeks. A billion seconds is 31.7 years. A trillion seconds is 31,710 years — longer than recorded human civilization. These anchors let you sanity-check timestamp values at a glance.

Common seconds to days mistakes

The first trap is the 86,400 vs 24,000 confusion. There are 86,400 seconds in a day (24 hours of 3,600 seconds each), not 24,000. Anyone who divides by 24,000 produces a value 3.6 times too large.

The second trap is mixing milliseconds and seconds. JavaScript’s Date.now() returns milliseconds since epoch; Python’s time.time() returns seconds (with a decimal fraction). If you pass a millisecond value to a function expecting seconds, you get a result a thousand times off. Always check the unit at every API boundary.

The third is timezone drift. A “day” in seconds always means 86,400 sec, but if your start and end points span a daylight-saving transition, the calendar elapsed time is 23 or 25 hours, not 24. Either work in UTC or accept that civil days are not always identical to 86,400-second blocks.

FAQ

Exactly 86,400 seconds. The chain is 24 hours × 60 minutes × 60 seconds. This is the civil-day definition fixed by ISO 8601 and used by Unix time.
A common (non-leap) year is 31,536,000 seconds (365 × 86,400). A leap year is 31,622,400 seconds (366 × 86,400). The Julian average year of 365.25 days equals 31,557,600 seconds.
1,000,000 sec ≈ 11.574 days, or 11 days, 13 hours, 46 minutes, and 40 seconds. A useful mental anchor: one million seconds is just under twelve days.
1,000,000,000 sec ≈ 31.7 years. The exact value is 1,000,000,000 ÷ 86,400 ÷ 365.25 = 31.6881. About one full generation.
A Unix timestamp is the number of seconds elapsed since 00:00:00 UTC on 1 January 1970. Divide by 86,400 to get days since that epoch. The 2,000,000,000 mark falls on 18 May 2033; the 32-bit signed limit (2,147,483,647) falls on 19 January 2038.
No. This converter uses 86,400 seconds per day, which matches Unix time and ISO 8601. Leap seconds — added irregularly by the IERS to keep UTC aligned with Earth’s slowing rotation — affect only specialized metrology applications.
Use seconds / 86400 for the decimal value. For a breakdown, divmod works well: days, rem = divmod(s, 86400); hours, rem = divmod(rem, 3600); minutes, secs = divmod(rem, 60). The datetime.timedelta class also accepts a seconds argument and exposes .days directly.
A sidereal day (Earth’s rotation against the stars) is about 86,164.09 seconds — roughly 235.9 seconds shorter than a mean solar day. Calculators and clocks use the solar day (86,400 sec). Astronomers and satellite tracking use the sidereal value.