Time / ms → ns
Convert Milliseconds to Nanoseconds
Convert fixed elapsed durations from nanoseconds to weeks. Convert Milliseconds (ms) to Nanoseconds (ns). Find the formula, worked examples, unit definitions, and practical guidance below.
Reverse: Nanoseconds to Milliseconds →
How to convert milliseconds to nanoseconds
Days mean exactly 86400 seconds here. Calendar months and years vary and are deliberately excluded; this is not a date, time-zone, or leap-second calculator.
Use x for the value in ms, b for the intermediate value in s, and y for the result in ns.
ns = ms × 0.001 ÷ 1e-9
Worked examples
10 ms ≈ 10000000 ns
Step 1: (10 × 0.001) ≈ 0.01 s.
Step 2: 0.01 ÷ 1e-9 ≈ 10000000 ns.20 ms ≈ 20000000 ns
Step 1: (20 × 0.001) ≈ 0.02 s.
Step 2: 0.02 ÷ 1e-9 ≈ 20000000 ns.
Results are rounded to 12 significant digits. Converting units does not increase the precision of the original measurement. Very large or small values outside JavaScript’s finite numeric range are rejected.
About Milliseconds
Milliseconds (ms) measures time under the conventions above. The base value in s is (x × 0.001), where x is the numerical value in ms. Factors shown here are rounded for display; calculations use the stored factor.
About Nanoseconds
Nanoseconds (ns) measures time under the conventions above. The base value in s is (x × 1e-9), where x is the numerical value in ns. Factors shown here are rounded for display; calculations use the stored factor.
Definitions and sources
Carry the same physical assumptions into subsequent physics calculations.
Milliseconds to nanoseconds reference table
| Milliseconds (ms) | Nanoseconds (ns) |
|---|---|
| 1 | 1000000 |
| 5 | 5000000 |
| 10 | 10000000 |
| 25 | 25000000 |
| 50 | 50000000 |
| 100 | 100000000 |
| 1000 | 1000000000 |
Browse every time conversion →