Speed of Sound Calculator
- In air the speed of sound depends almost entirely on temperature: v = 331.3 + 0.606 × T, with T in °C.
- At 20 °C: v = 331.3 + 0.606 × 20 = 343.4 m/s.
- That is 1,236.3 km/h — which is why counting the seconds between a lightning flash and the thunder and dividing by roughly 3 gives the storm's distance in kilometres.
- Humidity nudges the value up slightly and altitude, on its own, does not change it at all: only the temperature that comes with altitude matters.
A speed of sound calculator tells you how fast sound waves travel through a given medium at a specific temperature. For dry air, the result comes from the formula v = 331.3 + 0.606 x T m/s, where T is the temperature in degrees Celsius. At 20 °C, that gives v = 331.3 + 0.606 x 20 = 343.4 m/s, or 1,236.3 km/h. At 35 °C, the speed rises to 352.5 m/s. Altitude does not directly change the speed — only the temperature that comes with it does — and humidity raises the speed slightly. The speed is set by the medium's stiffness and density, which is why stiff, light materials carry sound fastest: fresh water at 20 °C transmits sound at about 1,481 m/s, sea water at about 1,522 m/s, and steel at about 5,960 m/s. Sound in fresh water (1,481 m/s) travels about 4.3 times faster than in air at 20 °C.
This calculator relies on a well-established linear approximation for dry air that physicists and engineers have used for generations because it matches measured values closely across everyday temperatures. The same principle — that a medium's stiffness and density set the wave speed — explains the reference speeds for water and steel. The thunder rule follows directly from the air formula: sound covers roughly a kilometre every 3 seconds (a mile every 5 seconds) at ordinary temperatures. On this page, we show the full formula, step-by-step workings, worked examples at 20 °C and 35 °C, and the sources behind each reference speed so you can verify every result yourself.
Worked examples
The standard reference
Primary result: 343.4 m/s — sound in air at 20 °C, the number behind the three-seconds-per-kilometre thunder rule. (Air (temperature-dependent) · 20 °C)
| Speed of sound in air | 343.4 m/s |
| In kilometres per hour | 1,236.3 km/h |
| In miles per hour | 768.2 mph |
A hot day
Primary result: 352.5 m/s — at 35 °C sound runs about 9 m/s faster than at 20 °C. (Air (temperature-dependent) · 35 °C)
| Speed of sound in air | 352.5 m/s |
| In kilometres per hour | 1,269.0 km/h |
| In miles per hour | 788.5 mph |
Underwater
Primary result: 1,481 m/s — fresh water carries sound more than four times faster than air, which is why underwater sounds are so hard to locate. (Fresh water (20 °C) · 20 °C)
| Speed of sound in fresh water at 20 °C | 1,481 m/s |
| In kilometres per hour | 5,332 km/h |
| Compared with air at 20 °C | 4.3x faster |
The speed of sound in air
In dry air the speed of sound is approximately v = 331.3 + 0.606 x T m/s, with T in degrees Celsius. This linear temperature formula is handy for everyday conditions, but it does have a range of validity. It works well for temperatures near the usual range people experience, roughly between -50 °C and +50 °C. Beyond that band the relationship is not perfectly linear, so a speed of sound calculator that relies on this formula may lose accuracy at extreme cold or extreme heat.
To see the formula in action, consider two worked examples. At 20 °C, v = 331.3 + 0.606 x 20 = 343.4 m/s, which equals 1,236.3 km/h. At 35 °C, v = 352.5 m/s. The conversion from meters per second to kilometers per hour is straightforward: multiply by 3.6. So 343.4 m/s becomes 1,236.3 km/h, and 352.5 m/s becomes 1,269 km/h. This shows how much a warm summer day can speed up sound compared with a mild room.
Altitude does not directly change the speed — only the temperature that comes with it does. Humidity raises the speed slightly, but the effect is small compared with temperature. The speed is set by the medium's stiffness and density, which is why stiff, light materials carry sound fastest. For reference, fresh water at 20 °C transmits sound at about 1,481 m/s, sea water about 1,522 m/s, and steel about 5,960 m/s. Sound in fresh water (1,481 m/s) travels about 4.3 times faster than in air at 20 °C.
The thunder rule follows directly: sound covers roughly a kilometre every 3 seconds (a mile every 5 seconds) at ordinary temperatures. That is because at 343.4 m/s, sound takes about 2.9 seconds to travel one kilometre, which rounds to 3 seconds for quick mental estimates. This simple rule lets you judge how far away a lightning strike is by counting the seconds between the flash and the boom.
Reference speeds in other media
A speed of sound calculator is most often used for air, but sound travels very differently through water and solids. The speed is set by the medium's stiffness and density, which is why stiff, light materials carry sound fastest. In dry air the speed of sound is approximately v = 331.3 + 0.606 x T m/s, with T in degrees Celsius. That relationship lets you estimate the value at any temperature, but it is worth seeing how the numbers stack up across common materials.
The table below compares air at several temperatures against fresh water, sea water and steel. At 20 °C, v = 331.3 + 0.606 x 20 = 343.4 m/s (1,236.3 km/h). At 35 °C, v = 352.5 m/s. Fresh water at 20 °C moves sound along at about 1,481 m/s, sea water at about 1,522 m/s, and steel at about 5,960 m/s. Sound in fresh water (1,481 m/s) travels about 4.3 times faster than in air at 20 °C, and steel is faster still.
These reference values help explain everyday observations. The thunder rule follows directly: sound covers roughly a kilometre every 3 seconds (a mile every 5 seconds) at ordinary temperatures. If you are near water, remember that the same sound would race through it more than four times quicker than through the air around you.
Two factors often confuse people. Altitude does not directly change the speed — only the temperature that comes with it does; humidity raises the speed slightly. So a cold day at sea level can have a lower speed of sound than a warm day on a mountaintop. The medium itself, not height or moisture, is what matters most.
| Medium | Condition | Speed (m/s) | Comparison to air at 20 °C |
|---|---|---|---|
| Dry air | 0 °C | 331.3 | — |
| Dry air | 20 °C | 343.4 | 1.0x |
| Dry air | 35 °C | 352.5 | — |
| Fresh water | 20 °C | 1,481 | about 4.3x faster |
| Sea water | 20 °C | 1,522 | — |
| Steel | 20 °C | 5,960 | — |
The thunder rule and other everyday uses
The most familiar application of sound timing is the thunder rule. Light reaches you almost instantly, but sound travels much more slowly, so you see a lightning flash before you hear the boom. At ordinary temperatures sound covers roughly a kilometre every 3 seconds, which is the same as a mile every 5 seconds. You can derive this straight from the formula used in any speed of sound calculator: in dry air the speed is approximately v = 331.3 + 0.606 x T m/s, with T in degrees Celsius. At 20 °C that gives v = 331.3 + 0.606 x 20 = 343.4 m/s (1,236.3 km/h). Dividing 1,000 metres by 343.4 m/s gives about 2.9 seconds, which rounds to the 3-second rule most people remember. At 35 °C the formula gives 352.5 m/s, so the wait per kilometre shrinks slightly to about 2.8 seconds.
The same timing principle lets you estimate the distance to a cliff or canyon wall. Shout toward a flat surface and count the seconds until the echo returns, then divide by 2 to get the one-way travel time. Multiply by about 343 m/s at 20 °C and you have your distance in metres. This is echo ranging, and it works because sound reflects off hard surfaces and travels back at a fixed speed set by the medium's stiffness and density. Stiff, light materials carry sound fastest, which is why the reference speed in steel is about 5,960 m/s — far quicker than in air.
Sonar uses exactly the same physics, just underwater. Because sound in fresh water at 20 °C travels about 1,481 m/s — roughly 4.3 times faster than in air at the same temperature — a sonar pulse crosses water quickly and bounces back from fish, the sea floor, or submarines. Sea water is a little faster still, at about 1,522 m/s, because of its greater stiffness from dissolved salts and pressure. Whether you are timing thunder, clapping in a canyon, or reading a sonar display, the method is the same: send a sound, measure the round-trip time, and use the known speed to find the distance.
Two common misconceptions are worth noting. Altitude does not directly change the speed of sound — only the temperature that comes with it does. A cold mountaintop can have a slower sound speed than a warm valley, even though the valley is lower. Humidity also plays a small role: moist air is slightly less dense, which raises the speed slightly. For everyday estimates the 3-seconds-per-kilometre rule is accurate enough, but a speed of sound calculator that accounts for temperature will give you a precise number for any condition.
What changes the speed — and what does not
Temperature and the medium itself are the two factors that genuinely matter when you use a speed of sound calculator. In dry air, the speed of sound is approximately v = 331.3 + 0.606 × T m/s, with T in degrees Celsius. At 20 °C, that gives v = 331.3 + 0.606 × 20 = 343.4 m/s (1,236.3 km/h). Raise the temperature to 35 °C and the speed climbs to 352.5 m/s. The medium matters even more: sound in fresh water at 20 °C travels about 1,481 m/s, which is about 4.3 times faster than in air at the same temperature. Sea water is faster still at about 1,522 m/s, and steel carries sound at about 5,960 m/s.
The underlying reason is stiffness and density. The speed of sound is set by the medium's stiffness and density, which is why stiff, light materials carry sound fastest. Air is comparatively soft and light, so it transmits sound slowly. Water and steel are far stiffer, so they move sound much more quickly.
Altitude, on its own, does not directly change the speed of sound — only the temperature that comes with altitude does. A common misconception is that thinner air at higher elevations slows sound down, but the lower density at altitude does not by itself reduce the speed. What matters is that higher altitudes usually bring lower temperatures, and those lower temperatures do slow the sound.
Humidity raises the speed of sound slightly, because moist air is a bit less dense than dry air at the same temperature and pressure. The effect is small, though, so it is usually ignored for everyday estimates. Pressure has essentially no effect on the speed of sound in air. At a constant temperature, changing pressure alone does not change the speed, because pressure and density rise and fall together in air in a way that cancels out.
These relationships explain the familiar thunder rule. Sound covers roughly a kilometre every 3 seconds (a mile every 5 seconds) at ordinary temperatures, so counting seconds between a lightning flash and the thunder tells you how far away the strike was.
FAQs
What is the speed of sound at 20 °C?
The speed of sound at 20 °C is 343.4 m/s in dry air, which equals about 1,236.3 km/h. This is the value most commonly used for everyday calculations at room temperature. Keep in mind that humidity and pressure can shift this number slightly, but 343.4 m/s is the standard reference point for dry air at 20 °C.
What is the formula for the speed of sound in air?
The approximate formula is v = 331.3 + 0.606 x T m/s, with T in degrees Celsius. This gives you a quick estimate of the speed of sound in air at a given temperature. The base value 331.3 m/s represents the speed at 0 °C, and each degree above that adds about 0.606 m/s to the total.
How fast is sound in water?
Sound travels at about 1,481 m/s in fresh water at 20 °C, which is roughly 4.3 times faster than in air. Water is far denser and less compressible than air, so the disturbance moves through it much more quickly. Salt water can be slightly faster still, but 1,481 m/s is the standard figure for fresh water at 20 °C.
Why does temperature change the speed?
Warmer air molecules move faster and pass the disturbance along quicker, so the speed of sound rises about 0.6 m/s per degree Celsius. Cold air slows the molecules, which slows the sound. This is why the speed of sound on a winter day is noticeably lower than on a hot summer afternoon at the same altitude and humidity.
Is Mach 1 a fixed speed?
No, Mach 1 is not a fixed speed. It is the local speed of sound, which changes with air temperature. Mach 1 falls with altitude because the air gets colder up there, so an aircraft flying at Mach 1 at sea level is going faster than one flying at Mach 1 at 30,000 feet. The speed always depends on local conditions.
How does the thunder rule work?
Count the seconds between seeing lightning and hearing thunder: 3 seconds per kilometre, 5 per mile. Light arrives almost instantly, so you see the flash right away, but sound travels much slower. Divide your count by 3 for kilometres or by 5 for miles to estimate how far away the storm is. Start counting as soon as you see the flash.