Milliseconds to Nanoseconds
- Microseconds
- 1,000 µs
- Seconds
- 0.001 s
- Light travels in this time
- 299.792 km
ns = ms × 1,000,000
1 millisecond (ms) equals 1,000,000 nanoseconds (ns). To convert milliseconds to nanoseconds, multiply by 1,000,000 (10⁶). Microseconds (µs) sit in between: 1 ms = 1,000 µs and 1 µs = 1,000 ns.
What Is a Millisecond and a Nanosecond
A millisecond (ms) is one thousandth of a second (10⁻³ s), and a nanosecond (ns) is one billionth of a second (10⁻⁹ s). Both units add SI prefixes to the second, so they differ by a factor of 10⁶.
-
Millisecond (ms)
10⁻³ s. A 60 Hz screen draws a new frame every 16.67 ms.
-
Microsecond (µs)
10⁻⁶ s. 1,000 µs make 1 ms.
-
Nanosecond (ns)
10⁻⁹ s. Light travels 29.98 cm (11.8 in) in 1 ns.
How to Convert Milliseconds to Nanoseconds
To convert milliseconds to nanoseconds, multiply the milliseconds by 1,000,000.
ns = ms × 1,000,000
Reverse: ms = ns ÷ 1,000,000
- Step 1
Enter the milliseconds
Type the time in ms, such as 0.25 ms.
- Step 2
Multiply by 1,000,000
Each ms holds 10⁶ ns: 0.25 × 1,000,000.
- Step 3
Read the nanoseconds
0.25 ms equals 250,000 ns.
Linked to the Milliseconds to Nanoseconds calculator above
- Step 1
- Step 2
- Step 3
Milliseconds to Nanoseconds Conversion Table
Hover a bar to read its value
| Milliseconds (ms) | Nanoseconds (ns) | Microseconds (µs) |
|---|---|---|
| 0.001 | 1,000 | 1 |
| 0.01 | 10,000 | 10 |
| 0.1 | 100,000 | 100 |
| 0.25 | 250,000 | 250 |
| 0.5 | 500,000 | 500 |
| 1 | 1,000,000 | 1,000 |
| 2 | 2,000,000 | 2,000 |
| 5 | 5,000,000 | 5,000 |
| 10 | 10,000,000 | 10,000 |
| 16.67 | 16,670,000 | 16,670 |
| 100 | 100,000,000 | 100,000 |
| 1,000 | 1,000,000,000 | 1,000,000 |
Milliseconds to Nanoseconds Examples
-
One 60 fps video frame
16.67 ms = 16,670,000 ns
-
A 0.25 ms audio buffer step
0.25 ms = 250,000 ns
-
A 5 ms network ping
5 ms = 5,000,000 ns
The 3 examples side by side
Where Milliseconds and Nanoseconds Are Used
- Software profilers report function timings in nanoseconds.
- Network tools measure latency in milliseconds.
- Oscilloscopes resolve signal edges in nanoseconds.
- Game engines budget each frame in milliseconds.
Practice
Score: 0 / 0
—
Milliseconds to Nanoseconds Questions
How many nanoseconds are in a millisecond?
There are 1,000,000 nanoseconds in a millisecond.
How many nanoseconds are in a second?
There are 1,000,000,000 nanoseconds (10⁹ ns) in a second.
Is a nanosecond smaller than a microsecond?
Yes, a nanosecond is 1,000 times smaller than a microsecond: 1 µs = 1,000 ns.
How far does light travel in 1 nanosecond?
Light travels 29.98 cm (11.8 in) in 1 nanosecond in a vacuum.
How do you convert 0.25 ms to ns?
Multiply 0.25 by 1,000,000: 0.25 ms equals 250,000 ns.