Sound Speed in Fluid Calculator

Find the speed of sound in an ideal gas from temperature, or in a liquid from bulk modulus and density.

🔊 Sound Speed in Fluid Calculator
Specific heat ratio (γ)1.4
1.011.7
Specific gas constant (R)287
J/(kg·K)
504200
Temperature20
°C
-50°C100°C
Bulk modulus (K)2.2
GPa
0.0535
Density (ρ)1000
kg/m³
50014000
Speed of Sound
Speed (km/h)
Formula used

🔊 What is the Sound Speed in Fluid Calculator?

This speed of sound calculator finds how fast a pressure wave travels through a gas or a liquid. In gas mode it uses c = sqrt(gamma R T), the ideal gas formula built from the specific heat ratio, the specific gas constant, and absolute temperature. In liquid mode it uses c = sqrt(K / rho), built from the liquid's bulk modulus (a measure of stiffness) and its density. Both modes return the speed of sound in metres per second, along with a kilometres-per-hour conversion and a live chart showing how the result changes as temperature or density varies.

Engineers and students use speed of sound calculations for a wide range of tasks: aerospace engineers compute Mach number by dividing an aircraft's velocity by the local speed of sound, which changes with altitude because temperature changes with altitude. Acoustic engineers designing underwater sonar systems need the speed of sound in seawater, which differs from fresh water because of dissolved salts. HVAC and combustion engineers use the gas-phase formula to understand how temperature affects noise propagation and shock wave behaviour in ducts and engines.

A common misconception is that the speed of sound in a gas depends on pressure or altitude. It does not, because pressure and density scale together at a fixed temperature and their effects on c = sqrt(gamma R T) cancel exactly. Temperature is the only variable that matters for an ideal gas. Another point of confusion is why liquids carry sound so much faster than gases despite being far denser. The answer is that a liquid's bulk modulus (stiffness) is many orders of magnitude larger than a gas's effective compressibility term, and that stiffness advantage overwhelms the density penalty inside c = sqrt(K / rho).

This calculator is useful for anyone who needs a quick, accurate speed of sound value, whether for a Mach number problem, an underwater acoustics estimate, or simply to check the textbook value of 343 m/s for air at room temperature against a specific temperature or gas of interest.

📐 Formula

Gas: c  =  √(γ × R × T)
γ = specific heat ratio, dimensionless (1.4 for air and other diatomic gases)
R = specific gas constant, J/(kg·K) (287 for air)
T = absolute temperature, Kelvin (entered here in °C, converted internally as T = t°C + 273.15)
Liquid: c  =  √(K / ρ)
K = bulk modulus, pascals (entered here in GPa, converted internally as K = KGPa × 109)
ρ = density, kg/m³
Example: air at 20°C (293.15 K), γ=1.4, R=287: c = √(1.4 × 287 × 293.15) = 343.20 m/s.

📖 How to Use This Calculator

Steps

1
Choose gas or liquid mode. Select Gas mode for air and other gases, or Liquid mode for water and other liquids.
2
Enter the fluid properties. For gas mode, enter the specific heat ratio, gas constant, and temperature. For liquid mode, enter the bulk modulus and density.
3
Read the speed of sound. See the result in metres per second and kilometres per hour, along with the formula used.

💡 Example Calculations

Example 1 - Air at room temperature (20°C)

1
γ = 1.4, R = 287 J/(kg·K), T = 20°C = 293.15 K
2
c = √(γ × R × T) = √(1.4 × 287 × 293.15) = √117,787.67
3
c = 343.20 m/s (the commonly cited speed of sound in air)
c = 343.20 m/s (1,236 km/h)
Try this example →

Example 2 - Air at freezing point (0°C)

1
γ = 1.4, R = 287 J/(kg·K), T = 0°C = 273.15 K
2
c = √(1.4 × 287 × 273.15) = √109,751.67
3
c = 331.29 m/s, about 12 m/s slower than at 20°C
c = 331.29 m/s (1,193 km/h)
Try this example →

Example 3 - Helium at room temperature (20°C)

1
γ = 1.66, R = 2077 J/(kg·K), T = 20°C = 293.15 K
2
c = √(1.66 × 2077 × 293.15) = √1,010,728.43
3
c = 1,005.35 m/s, roughly 3 times faster than air
c = 1,005.35 m/s (3,619 km/h)
Try this example →

Example 4 - Fresh water

1
K = 2.2 GPa = 2,200,000,000 Pa, ρ = 1000 kg/m³
2
c = √(K / ρ) = √(2,200,000,000 / 1000) = √2,200,000
3
c = 1,483.24 m/s (the commonly cited speed of sound in water)
c = 1,483.24 m/s (5,340 km/h)
Try this example →

Example 5 - Seawater

1
K = 2.34 GPa = 2,340,000,000 Pa, ρ = 1025 kg/m³
2
c = √(2,340,000,000 / 1025) = √2,282,926.83
3
c = 1,510.94 m/s, faster than fresh water despite being denser
c = 1,510.94 m/s (5,439 km/h)
Try this example →

❓ Frequently Asked Questions

What is the formula for the speed of sound in a gas?+
For an ideal gas, c = sqrt(gamma R T), where gamma is the specific heat ratio (dimensionless, 1.4 for diatomic gases like air), R is the specific gas constant in J/(kg K) (287 for air), and T is the absolute temperature in Kelvin. Speed of sound in a gas depends only on temperature, not pressure or altitude.
What is the speed of sound in air at room temperature?+
At 20°C (293.15 K), using gamma = 1.4 and R = 287 J/(kg K) for air, c = sqrt(1.4 x 287 x 293.15) which is approximately 343 m/s. This is the most commonly cited value for the speed of sound in air at sea level and room temperature.
What is the formula for the speed of sound in a liquid?+
For a liquid, c = sqrt(K / rho), where K is the bulk modulus in pascals (a measure of how resistant the liquid is to compression) and rho is the density in kg per cubic metre. A stiffer liquid (higher K) or a lighter liquid (lower rho) conducts sound faster.
Why does sound travel faster in water than in air?+
Water's bulk modulus (about 2.2 GPa) is enormously larger than air's effective stiffness at the same conditions, and this dominates water's higher density in the ratio K/rho. The result is a speed of sound in water near 1483 m/s, roughly 4.3 times faster than the 343 m/s speed of sound in air.
Does the speed of sound depend on air pressure or altitude?+
No, for an ideal gas the speed of sound depends only on temperature, since c = sqrt(gamma R T) has no pressure term. Both pressure and density scale together as altitude changes, and their effects cancel out, so temperature is the only variable that matters.
How does temperature affect the speed of sound in air?+
Speed of sound increases with the square root of absolute temperature. Warmer air has faster-moving molecules that transmit pressure disturbances more quickly, so c rises from about 331 m/s at 0°C to about 343 m/s at 20°C, an increase of roughly 0.6 m/s per degree Celsius near room temperature.
What is bulk modulus and why does it matter for sound speed?+
Bulk modulus K measures a material's resistance to uniform compression, higher K means the material is stiffer and springs back more forcefully when compressed. Sound is a pressure wave, so a stiffer medium (higher K) transmits that wave faster, which is why c = sqrt(K / rho) increases directly with bulk modulus.
What is the speed of sound in seawater versus fresh water?+
Seawater has both a slightly higher bulk modulus (around 2.34 GPa, due to dissolved salts) and a higher density (around 1025 kg per cubic metre) than fresh water. The higher bulk modulus effect wins out, giving seawater a speed of sound near 1511 m/s, a bit faster than fresh water's 1483 m/s.
Can I use this calculator to find Mach number?+
Yes. Compute the local speed of sound here for your gas and temperature, then divide an object's velocity by that value using the Mach Number Calculator to get Mach number. Mach number depends on local temperature because speed of sound itself depends on temperature.
Why does helium carry sound faster than air even though it's lighter?+
Helium is a monatomic gas with a higher specific heat ratio (gamma is about 1.66 versus 1.4 for air) and a much larger specific gas constant (about 2077 J/(kg K) versus 287 for air, since helium has a lower molar mass). Both factors multiply inside c = sqrt(gamma R T), pushing helium's speed of sound to roughly 1005 m/s at 20°C, about three times faster than air.
What units does this calculator use for bulk modulus and density?+
Liquid mode accepts bulk modulus in gigapascals (GPa) for convenience, since raw pascal values for common liquids run into the billions, and converts internally to pascals (1 GPa = 1,000,000,000 Pa) before applying c = sqrt(K / rho). Density is entered directly in kilograms per cubic metre (kg/m³).

What is the formula for the speed of sound in a gas?

For an ideal gas, c = sqrt(gamma R T), where gamma is the specific heat ratio (dimensionless, 1.4 for diatomic gases like air), R is the specific gas constant in J/(kg K) (287 for air), and T is the absolute temperature in Kelvin. Speed of sound in a gas depends only on temperature, not pressure or altitude.

What is the speed of sound in air at room temperature?

At 20°C (293.15 K), using gamma = 1.4 and R = 287 J/(kg K) for air, c = sqrt(1.4 x 287 x 293.15) which is approximately 343 m/s. This is the most commonly cited value for the speed of sound in air at sea level and room temperature.

What is the formula for the speed of sound in a liquid?

For a liquid, c = sqrt(K / rho), where K is the bulk modulus in pascals (a measure of how resistant the liquid is to compression) and rho is the density in kg per cubic metre. A stiffer liquid (higher K) or a lighter liquid (lower rho) conducts sound faster.

Why does sound travel faster in water than in air?

Water's bulk modulus (about 2.2 GPa) is enormously larger than air's effective stiffness at the same conditions, and this dominates water's higher density in the ratio K/rho. The result is a speed of sound in water near 1483 m/s, roughly 4.3 times faster than the 343 m/s speed of sound in air.

Does the speed of sound depend on air pressure or altitude?

No, for an ideal gas the speed of sound depends only on temperature, since c = sqrt(gamma R T) has no pressure term. Both pressure and density scale together as altitude changes, and their effects cancel out, so temperature is the only variable that matters.

How does temperature affect the speed of sound in air?

Speed of sound increases with the square root of absolute temperature. Warmer air has faster-moving molecules that transmit pressure disturbances more quickly, so c rises from about 331 m/s at 0°C to about 343 m/s at 20°C, an increase of roughly 0.6 m/s per degree Celsius near room temperature.

What is bulk modulus and why does it matter for sound speed?

Bulk modulus K measures a material's resistance to uniform compression, higher K means the material is stiffer and springs back more forcefully when compressed. Sound is a pressure wave, so a stiffer medium (higher K) transmits that wave faster, which is why c = sqrt(K / rho) increases directly with bulk modulus.

What is the speed of sound in seawater versus fresh water?

Seawater has both a slightly higher bulk modulus (around 2.34 GPa, due to dissolved salts) and a higher density (around 1025 kg per cubic metre) than fresh water. The higher bulk modulus effect wins out, giving seawater a speed of sound near 1511 m/s, a bit faster than fresh water's 1483 m/s.

Can I use this calculator to find Mach number?

Yes. Compute the local speed of sound here for your gas and temperature, then divide an object's velocity by that value using the Mach Number Calculator to get Mach number. Mach number depends on local temperature because speed of sound itself depends on temperature.

Why does helium carry sound faster than air even though it's lighter?

Helium is a monatomic gas with a higher specific heat ratio (gamma is about 1.66 versus 1.4 for air) and a much larger specific gas constant (about 2077 J/(kg K) versus 287 for air, since helium has a lower molar mass). Both factors multiply inside c = sqrt(gamma R T), pushing helium's speed of sound to roughly 1005 m/s at 20°C, about three times faster than air.

What units does this calculator use for bulk modulus and density?

Liquid mode accepts bulk modulus in gigapascals (GPa) for convenience, since raw pascal values for common liquids run into the billions, and converts internally to pascals (1 GPa = 1,000,000,000 Pa) before applying c = sqrt(K / rho). Density is entered directly in kilograms per cubic metre (kg/m³).