Conversion

Days to milliseconds (day to ms) converter

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Source

Please enter a valid URL. Only HTTPS URLs are supported.

Styling

Input border focus color, switchbox checked color, select item hover color etc.

Advanced

Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a days to milliseconds converter?

A days to milliseconds converter is an online tool that translates a duration expressed in days into its exact equivalent in milliseconds, and back again. A day is a familiar, human-scale unit of time, while the millisecond is one of the building blocks of digital timekeeping. Because computers, schedulers, and timers almost always count in milliseconds, anyone working with software, logs, or performance data frequently needs to bridge these two scales. This converter removes the mental arithmetic and gives you an immediate, accurate result in either direction.

How it works

The conversion rests on the fixed structure of the calendar day. One day contains 24 hours, each hour contains 60 minutes, each minute contains 60 seconds, and each second contains 1,000 milliseconds. Multiplying these together gives the number of milliseconds in a single day:

24 × 60 × 60 × 1,000 = 86,400,000 milliseconds.

To convert days to milliseconds, you multiply the number of days by 86,400,000. To go the other way and convert milliseconds to days, you divide the number of milliseconds by 86,400,000. The converter applies this factor instantly: type a value into either field and the matching field updates automatically.

Formula

The two conversion directions are summarized below:

Milliseconds=Days×86,400,000\text{Milliseconds} = \text{Days} \times 86{,}400{,}000

Days=Milliseconds86,400,000\text{Days} = \frac{\text{Milliseconds}}{86{,}400{,}000}

Days to milliseconds conversion table

The table lists common day values and their equivalents in milliseconds.

DaysMilliseconds (ms)
186,400,000
2172,800,000
3259,200,000
5432,000,000
7604,800,000
10864,000,000
141,209,600,000
302,592,000,000
36531,536,000,000

Examples

Example 1: One day to milliseconds

Convert 1 day to milliseconds using the factor of 86,400,000:

1 day×86,400,000=86,400,000 ms1 \text{ day} \times 86{,}400{,}000 = 86{,}400{,}000 \text{ ms}

A single day equals 86,400,000 milliseconds.

Example 2: Two days to milliseconds

A process is allowed to run for 2 days before timing out. Expressed in milliseconds, that limit is:

2 days×86,400,000=172,800,000 ms2 \text{ days} \times 86{,}400{,}000 = 172{,}800{,}000 \text{ ms}

So 2 days equals 172,800,000 milliseconds.

Example 3: Milliseconds back to days

A log file reports an elapsed time of 86,400,000 milliseconds. To express it in days, divide by 86,400,000:

86,400,000 ms86,400,000=1 day\frac{86{,}400{,}000 \text{ ms}}{86{,}400{,}000} = 1 \text{ day}

The recorded interval is exactly 1 day.

Notes

  • The factor 86,400,000 assumes a standard 24-hour day. It does not account for the rare leap second occasionally added to civil time, nor for daylight saving transitions, which can make a particular calendar day 23 or 25 hours long.
  • Milliseconds are the default time unit in many programming environments, so this conversion is common when setting timeouts, intervals, and cache durations.
  • Keeping your units consistent throughout a calculation prevents errors; convert once at the boundary rather than mixing days and milliseconds mid-formula.

Frequently asked questions

How many milliseconds are in a day?

There are 86,400,000 milliseconds in one day. This comes from multiplying 24 hours by 60 minutes, by 60 seconds, by 1,000 milliseconds.

How do I convert days to milliseconds?

Multiply the number of days by 86,400,000. For example, 3 days equals 3 × 86,400,000 = 259,200,000 milliseconds.

How do I convert milliseconds to days?

Divide the number of milliseconds by 86,400,000. If you need to go the other direction frequently, you can also use our milliseconds to days converter.

Why is a day exactly 86,400,000 milliseconds?

By definition a standard day has 24 hours, an hour has 60 minutes, a minute has 60 seconds, and a second has 1,000 milliseconds. The product of these values is 86,400,000, so a day always equals that many milliseconds under standard timekeeping.

Does this converter handle decimals and partial days?

Yes. You can enter fractional values such as 0.5 days, and the converter will return the precise number of milliseconds (0.5 days equals 43,200,000 ms).

Are leap seconds included in the conversion?

No. The converter uses the fixed value of 86,400,000 milliseconds per day. Leap seconds are occasional one-second adjustments to civil time and are not part of this standard conversion.

Report a bug

This field is required.