Milliseconds to Nanoseconds
An instant milliseconds-to-nanoseconds converter, with the formula and a reference table below.
| Milliseconds | Nanoseconds |
|---|---|
| 1 ms | 1000000 ns |
| 2 ms | 2000000 ns |
| 3 ms | 3000000 ns |
| 5 ms | 5000000 ns |
| 10 ms | 10000000 ns |
| 25 ms | 25000000 ns |
| 50 ms | 50000000 ns |
| 100 ms | 100000000 ns |
How to use
- Enter a value in the Milliseconds field.
- The Nanoseconds figure appears immediately — no button to press.
- Typing in the Nanoseconds field converts back to Milliseconds the same way.
- Use the reference table for the values that come up most often.
Milliseconds to Nanoseconds formula
Converting milliseconds to nanoseconds is a single multiplication by 1000000.
ns = ms × 1000000
Why this factor: the millisecond and the nanosecond are both defined against the second, so dividing one definition by the other gives 1000000 directly. Both definitions are set out in full below.
To go the other way, divide by 1000000 — or use the Nanoseconds to Milliseconds converter, which is the same calculation reversed.
Worked example
Take 365 ms and multiply by the factor 1000000: the result is 365000000 ns.
365 ms × 1000000 = 365000000 ns
The converter above does this for any value you type, in either direction.
What is a millisecond?
A millisecond is one thousandth of a second, the unit of perceptible computing delay.
Definition: Exactly 0.001 second by SI prefix definition.
Where it is used: Network latency and ping times, audio buffer sizes, and animation and reaction timings.
What is a nanosecond?
A nanosecond is one billionth of a second — the timescale of digital electronics.
Definition: Exactly 1×10⁻⁹ second by SI prefix definition.
Where it is used: Processor and memory latency, network round trips, and high-frequency trading.
Worth knowing: Light travels almost exactly 30 cm in one nanosecond, which is why physical distance limits computer speed.
Milliseconds vs Nanoseconds
The millisecond and the nanosecond belong to the same family of units, so converting between them is usually a matter of shifting a decimal point or applying a small whole-number factor.
Frequently asked questions
How many nanoseconds are in a millisecond?
One millisecond equals 1000000 nanoseconds.
What is the formula to convert milliseconds to nanoseconds?
Multiply the number of milliseconds by 1000000. To reverse it, divide by 1000000 instead.
How do I convert nanoseconds back to milliseconds?
Divide by 1000000, which is the same as multiplying by 1e-06.
How many nanoseconds are in 10 milliseconds?
10 ms works out to 10000000 ns.
Is there anything to watch out for with nanoseconds?
Light travels almost exactly 30 cm in one nanosecond, which is why physical distance limits computer speed.
How is the millisecond defined?
Exactly 0.001 second by SI prefix definition.