Time / ns → ms
Convert Nanoseconds to Milliseconds
Convert fixed elapsed durations from nanoseconds to weeks. Convert Nanoseconds (ns) to Milliseconds (ms). Find the formula, worked examples, unit definitions, and practical guidance below.
Reverse: Milliseconds to Nanoseconds →
How to convert nanoseconds to milliseconds
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 ns, b for the intermediate value in s, and y for the result in ms.
ms = ns × 1e-9 ÷ 0.001
Worked examples
10 ns ≈ 0.00001 ms
Step 1: (10 × 1e-9) ≈ 1e-8 s.
Step 2: 1e-8 ÷ 0.001 ≈ 0.00001 ms.20 ns ≈ 0.00002 ms
Step 1: (20 × 1e-9) ≈ 2e-8 s.
Step 2: 2e-8 ÷ 0.001 ≈ 0.00002 ms.
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 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.
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.
Definitions and sources
Carry the same physical assumptions into subsequent physics calculations.
Nanoseconds to milliseconds reference table
| Nanoseconds (ns) | Milliseconds (ms) |
|---|---|
| 1 | 0.000001 |
| 5 | 0.000005 |
| 10 | 0.00001 |
| 25 | 0.000025 |
| 50 | 0.00005 |
| 100 | 0.0001 |
| 1000 | 0.001 |
Browse every time conversion →