Nanoseconds to Seconds Converter
Type a value in nanoseconds to see it in seconds as you type, with the exact formula and a reference chart.
Free, no sign-upRuns in your browserHow we calculate
How this was calculated
- 1 second = 1,000,000,000 nanoseconds
- 1,000,000 ÷ 1,000,000,000 = 0.001 s
| ns | s |
|---|---|
| 1 ns | 1e-9 s |
| 10 ns | 1e-8 s |
| 100 ns | 1e-7 s |
| 250 ns | 2.5e-7 s |
| 500 ns | 5e-7 s |
| 1,000 ns | 0.000001 s |
| 5,000 ns | 0.000005 s |
| 10,000 ns | 0.00001 s |
| 100,000 ns | 0.0001 s |
| 500,000 ns | 0.0005 s |
| 1,000,000 ns | 0.001 s |
| 10,000,000 ns | 0.01 s |
| 100,000,000 ns | 0.1 s |
| 500,000,000 ns | 0.5 s |
| 1,000,000,000 ns | 1 s |
| 5,000,000,000 ns | 5 s |
| s | ns |
|---|---|
| 1e-9 s | 1 ns |
| 2e-9 s | 2 ns |
| 5e-9 s | 5 ns |
| 1e-8 s | 10 ns |
| 2e-8 s | 20 ns |
| 5e-8 s | 50 ns |
| 1e-7 s | 100 ns |
| 2e-7 s | 200 ns |
| 5e-7 s | 500 ns |
| 0.000001 s | 1,000 ns |
| 0.000002 s | 2,000 ns |
| 0.000005 s | 5,000 ns |
How to convert nanoseconds to seconds
1 nanosecond = 1e-9 seconds. To convert nanoseconds to seconds, divide by 1,000,000,000 (or multiply by 1e-9). A nanosecond is one billionth of a second (10⁻⁹ s); light travels about 30 cm (11.8 in) in one nanosecond. The second is the SI base unit of time, defined by the cesium-133 transition.
Worked examples
- 100 nanoseconds = 1e-7 s (100 ÷ 1,000,000,000)
- 1,000,000 nanoseconds = 0.001 s (1,000,000 ÷ 1,000,000,000)
- 1,500,000,000 nanoseconds = 1.5 s (1,500,000,000 ÷ 1,000,000,000)
Where this conversion comes up
Nanoseconds are used for CPU clock cycles, memory latency, network timing, lasers and physics; seconds for stopwatches, video timing and physics. Profilers, benchmarks and system clocks often report time in nanoseconds: Go's time.Duration, Java's System.nanoTime() and Linux clock_gettime all count in ns. One second is exactly 1,000,000,000 ns, so a 1,500,000,000 ns benchmark run is 1.5 seconds and a 100 ns memory access is 0.0000001 s (0.1 µs). A 3 GHz processor completes one clock cycle every 0.333 ns.
Quick estimate
Divide by 1,000,000,000: move the decimal point nine places to the left. 1,000 ns = 1 µs and 1,000,000 ns = 1 ms.
Common mistakes
- Multiplying instead of dividing. A second is larger than a nanosecond, so the number of seconds must come out smaller: 100 nanoseconds = 1e-7 s.
- Reading the remainder as a decimal. 1 h 30 min is 1.5 h, not 1.3 h: divide the leftover minutes by 60 (or seconds by 60) to get the decimal part.
Related time converters: minutes to hours, hours to minutes, seconds to minutes, minutes to seconds, seconds to hours, hours to seconds.
Frequently asked questions
How do you convert nanoseconds to seconds?
Multiply the nanoseconds by 1e-9 (or divide by 1,000,000,000). For example, 1,000,000 nanoseconds is 0.001 seconds.
How many seconds are in one nanosecond?
One nanosecond is 1e-9 seconds. A nanosecond is one billionth of a second (10⁻⁹ s); light travels about 30 cm (11.8 in) in one nanosecond.
What is 1,500,000,000 nanoseconds in seconds?
1,500,000,000 nanoseconds is 1.5 seconds.
Is there a quick way to estimate nanoseconds to seconds?
Divide by 1,000,000,000: move the decimal point nine places to the left. 1,000 ns = 1 µs and 1,000,000 ns = 1 ms.