Home Calculators Categories Category: Science & Engineering

Speed of Sound Calculator

The speed of sound is the propagation velocity of a small-amplitude pressure disturbance through an elastic medium. It is set by two properties: how stiff the medium is and how much inertia it carries. In a gas, stiffness comes from the isentropic compressibility of the gas and inertia from its density, which reduces to a dependence on absolute temperature alone. In a liquid it is the adiabatic bulk modulus over density. In a slender solid rod it is Young's modulus over density. This calculator evaluates all four cases in your browser, shows the substitution step by step, and reports the result in m/s\text{m/s}, ft/s\text{ft/s} and km/h\text{km/h}.

Input
Load dry-air temperature examples in Simple mode.
The model converts this value to kelvins. Unit changes preserve physical temperature.

Type an exact value or use the slider. Changing units converts the value.

Dry, stationary air · γ = 1.4 · R = 287.05 J/(kg·K). Humidity and wind are not included.

Visual
Distance traveled in one millisecond Two bars compare the calculated wave travel distance with dry air at 20 degrees Celsius. Both use the same linear scale, which adapts to the larger value.
Output
Speed of sound
343.23 m/s

Dry air estimate

Two decimal places show model arithmetic, not measurement accuracy.

Worked solution

T = 293.15 K; c = √(1.4 × 287.05 × 293.15) = 343.23 m/s.

How the Calculator Works

The engine is a deterministic client-side module (js/math.js) written as vanilla ES modules. Every evaluation runs entirely in your browser: there are no network requests and no tracking. Internal arithmetic uses full IEEE-754 double precision, and results are displayed to two decimal places. That rounding is a display convention of the model, not a statement about physical measurement precision.

The tool computes the propagation speed of a small-amplitude acoustic wave relative to a stationary medium. It does not model fluid particle velocity, shock waves, or projectile Mach numbers.

Simple and Advanced Modes

Mode Inputs exposed Model
Simple Temperature value and unit (C, F, K) Dry air, γ=1.4\gamma = 1.4, R=287.05 J/(kg⋅K)R = 287.05\text{ J/(kg}\cdot\text{K)}
Advanced Material selector (air, gas, liquid, rod), model-specific properties, and secondary units (ft/s\text{ft/s}, km/h\text{km/h}) Dry air, custom ideal gas, Newton-Laplace liquid, slender rod

Switching between modes preserves the values you have entered.

Input Ranges

Input Min Max Default Step Active for
temperature −100-100 10001000 2020 11 air, gas
gamma (γ\gamma) 1.011.01 1.671.67 1.41.4 0.010.01 gas
molarMass (MM) 1 g/mol1\text{ g/mol} 300 g/mol300\text{ g/mol} 28.97 g/mol28.97\text{ g/mol} 0.010.01 gas
modulus 0.001 GPa0.001\text{ GPa} 1000 GPa1000\text{ GPa} 2.2 GPa2.2\text{ GPa} 0.10.1 liquid (bulk), rod (Young's)
density (ρ\rho) 1 kg/m31\text{ kg/m}^3 30000 kg/m330000\text{ kg/m}^3 1000 kg/m31000\text{ kg/m}^3 11 liquid, rod

The modulus and density sliders are logarithmic because physical values span many orders of magnitude. Changing the temperature unit converts the numerical value rather than relabeling it, so 20 ∘C20\ ^\circ\text{C} becomes 68 ∘F68\ ^\circ\text{F} or 293.15 K293.15\text{ K}. The converted absolute temperature must be greater than 0 K0\text{ K}.

Speed of Sound Formula for Ideal Gases

For a calorically perfect ideal gas, the acoustic wave is an isentropic process, and the speed of sound is

c=γRsTc = \sqrt{\gamma R_{\text{s}} T}

where γ=cp/cv\gamma = c_p / c_v is the heat-capacity ratio, RsR_{\text{s}} is the specific gas constant in J/(kg⋅K)\text{J/(kg}\cdot\text{K)}, and TT is absolute temperature in kelvins. The specific gas constant relates to the universal gas constant RR (CODATA 2017) through the molar mass: Rs=R/MkgR_{\text{s}} = R / M_{\text{kg}}.

R=8.31446261815324 J/(mol⋅K)R = 8.31446261815324\text{ J/(mol}\cdot\text{K)}

Sound travels at a speed set by the gas's own thermal motion, not by the pressure level. At fixed temperature and composition, changing the ambient pressure changes density and the bulk modulus by the same factor, so the ratio, and therefore cc, is unchanged for an ideal gas.

Speed of Sound in Air Formula

For dry, stationary air the calculator uses γair=1.4\gamma_{\text{air}} = 1.4 and Rair=287.05 J/(kg⋅K)R_{\text{air}} = 287.05\text{ J/(kg}\cdot\text{K)}:

c=γairRairT=1.4×287.05×T=401.87×Tc = \sqrt{\gamma_{\text{air}} R_{\text{air}} T} = \sqrt{1.4 \times 287.05 \times T} = \sqrt{401.87 \times T}

Kelvin Scaling and the Square-Root Law

Speed is proportional to Tkelvin\sqrt{T_{\text{kelvin}}}. This has a practical consequence that is easy to get wrong: multiplying the absolute temperature by 4 doubles the speed of sound, but doubling a Celsius reading does not. Always convert to kelvins first:

TK=T°C+273.15,TK=T°F−321.8+273.15T_{\text{K}} = T_{\text{°C}} + 273.15, \qquad T_{\text{K}} = \frac{T_{\text{°F}} - 32}{1.8} + 273.15

Near room temperature the sensitivity is approximately dc/dT=c/(2T)≈0.59 m/s per kelvin\mathrm{d}c/\mathrm{d}T = c / (2T) \approx 0.59\text{ m/s per kelvin}.

Worked Example: Dry Air at 20 °C

Convert T=20+273.15=293.15 KT = 20 + 273.15 = 293.15\text{ K}. Then

c2=1.4×287.05×293.15=117,808.1905 m2/s2c^2 = 1.4 \times 287.05 \times 293.15 = 117{,}808.1905\ \text{m}^2/\text{s}^2
c=117,808.1905=343.23 m/sc = \sqrt{117{,}808.1905} = 343.23\text{ m/s}

Unit conversions, using the unrounded speed:

cft/s=117,808.19050.3048≈1,126.09 ft/s,ckm/h=117,808.1905×3.6≈1,235.64 km/hc_{\text{ft/s}} = \frac{\sqrt{117{,}808.1905}}{0.3048} \approx 1{,}126.09\text{ ft/s}, \qquad c_{\text{km/h}} = \sqrt{117{,}808.1905} \times 3.6 \approx 1{,}235.64\text{ km/h}

Dry Air Reference Values

Temperature Absolute TT Speed (m/s) Speed (ft/s) Speed (km/h)
0 ∘C0\ ^\circ\text{C} 273.15 K273.15\text{ K} 331.32331.32 1,087.011{,}087.01 1,192.741{,}192.74
20 ∘C20\ ^\circ\text{C} 293.15 K293.15\text{ K} 343.23343.23 1,126.091{,}126.09 1,235.641{,}235.64
40 ∘C40\ ^\circ\text{C} 313.15 K313.15\text{ K} 354.75354.75 n/a n/a
200 ∘C200\ ^\circ\text{C} 473.15 K473.15\text{ K} 436.06436.06 n/a n/a

The 200 ∘C200\ ^\circ\text{C} row triggers the temperature-model warning described below.

What the Air Model Excludes

The dry-air model ignores relative humidity, ambient pressure variations, wind shear, and altitude lapse rates. It is a calorically perfect gas model with constant γ\gamma.

Speed of Sound in Natural Gas Calculator Mode (Custom Ideal Gas)

Choosing the gas medium generalizes the relationship to any ideal gas. You supply γ\gamma and the molar mass MM in g/mol\text{g/mol}, and the engine converts to kg/mol\text{kg/mol} by multiplying by 10−310^{-3}:

c=γRTMkg=1000 γRTMg/molc = \sqrt{\frac{\gamma R T}{M_{\text{kg}}}} = \sqrt{\frac{1000\,\gamma R T}{M_{\text{g/mol}}}}

Lighter molecules move faster at the same temperature, so lower MM raises cc.

Worked Examples

Air-equivalent gas (γ=1.4\gamma = 1.4, M=28.97 g/molM = 28.97\text{ g/mol}, T=293.15 KT = 293.15\text{ K}):

c=1000×1.4×8.31446261815324×293.1528.97=343.20 m/sc = \sqrt{\frac{1000 \times 1.4 \times 8.31446261815324 \times 293.15}{28.97}} = 343.20\text{ m/s}

This equals 1,126.00 ft/s1{,}126.00\text{ ft/s} or 1,235.53 km/h1{,}235.53\text{ km/h}. It differs slightly from the 343.23 m/s343.23\text{ m/s} dry-air result because the two models use marginally different effective gas constants (8.31446/0.02897≈287.00 J/(kg⋅K)8.31446/0.02897 \approx 287.00\text{ J/(kg}\cdot\text{K)} versus 287.05287.05).

Light gas (γ=1.4\gamma = 1.4, M=16 g/molM = 16\text{ g/mol}, T=293.15 KT = 293.15\text{ K}), for example a methane component taken alone with the stated γ\gamma:

c=1000×1.4×8.31446261815324×293.1516=461.81 m/sc = \sqrt{\frac{1000 \times 1.4 \times 8.31446261815324 \times 293.15}{16}} = 461.81\text{ m/s}

That is 1,515.13 ft/s1{,}515.13\text{ ft/s} or 1,662.53 km/h1{,}662.53\text{ km/h}.

Natural Gas Caveats

Natural gas is a variable hydrocarbon mixture, predominantly methane with ethane, propane, CO2\text{CO}_2 and N2\text{N}_2. The calculator gives an ideal-gas estimate from the mixture-average γ\gamma and MM you enter. It does not compute compressibility factors (ZZ) or use real-gas equations of state such as GERG-2008 or AGA-8. For high-pressure pipeline metering, use a real-gas equation of state.

Speed of Sound in Liquids Calculator Mode (Newton-Laplace)

In a liquid, wave speed follows the Newton-Laplace relation using the adiabatic (isentropic) bulk modulus KK and mass density ρ\rho:

c=Kρ=modulus×109densityc = \sqrt{\frac{K}{\rho}} = \sqrt{\frac{\text{modulus} \times 10^9}{\text{density}}}

Modulus is entered in GPa\text{GPa} and converted to pascals (N/m2\text{N/m}^2) by multiplying by 10910^9. Density is in kg/m3\text{kg/m}^3.

Two scaling invariants are worth remembering: quadrupling KK doubles the speed, and quadrupling ρ\rho halves it.

Liquid Benchmarks

Case KK (GPa) ρ\rho (kg/m³) cc (m/s) cc (ft/s) cc (km/h)
Water-like default 2.22.2 10001000 1,483.241{,}483.24 4,866.274{,}866.27 5,339.665{,}339.66
Integer calibration 1.01.0 10001000 1,000.001{,}000.00 n/a n/a
Dense liquid 2.22.2 20002000 1,048.811{,}048.81 3,440.973{,}440.97 3,775.713{,}775.71

For the default case:

c=2.2×1091000=2,200,000≈1,483.24 m/sc = \sqrt{\frac{2.2 \times 10^9}{1000}} = \sqrt{2{,}200{,}000} \approx 1{,}483.24\text{ m/s}

The calibration case is exact:

1.0×109/1000=1,000,000=1,000.00 m/s\sqrt{1.0 \times 10^9 / 1000} = \sqrt{1{,}000{,}000} = 1{,}000.00\text{ m/s}

Liquid Model Limits

Enter KK and ρ\rho at the same temperature and pressure, and use the isentropic bulk modulus rather than the isothermal one. The model does not include pipe-wall flexibility (the Korteweg correction), entrained microbubbles or gas, or acoustic attenuation and dispersion.

Speed of Sound in Solids Calculator Mode (Slender Rods)

For a long, thin, homogeneous elastic rod, the extensional longitudinal wave speed is

c=Eρ=modulus×109densityc = \sqrt{\frac{E}{\rho}} = \sqrt{\frac{\text{modulus} \times 10^9}{\text{density}}}

where EE is Young's modulus in GPa\text{GPa} (converted with ×109\times 10^9) and ρ\rho is density in kg/m3\text{kg/m}^3.

Worked Example: Steel Rod

For E=200 GPaE = 200\text{ GPa} and ρ=8000 kg/m3\rho = 8000\text{ kg/m}^3:

c=200×1098000=25,000,000=5,000.00 m/sc = \sqrt{\frac{200 \times 10^9}{8000}} = \sqrt{25{,}000{,}000} = 5{,}000.00\text{ m/s}

This is approximately 16,404.20 ft/s16{,}404.20\text{ ft/s} or exactly 18,000.00 km/h18{,}000.00\text{ km/h}.

Validity Boundary: Rod Versus Bulk Solid

This relation holds only for extensional waves whose wavelength is much larger than the rod's cross-sectional diameter, λ≫D\lambda \gg D. In that regime the rod's sides are free to expand and contract laterally (Poisson effect).

In an unbounded three-dimensional solid, lateral strain is constrained, and the longitudinal wave is faster:

cbulk=K+43Gρ,cshear=Gρc_{\text{bulk}} = \sqrt{\frac{K + \tfrac{4}{3}G}{\rho}}, \qquad c_{\text{shear}} = \sqrt{\frac{G}{\rho}}

where GG is the shear modulus. The rod mode of this calculator is therefore not an ultrasonic bulk-inspection velocity.

Ultrasonic Velocity Formula: Choosing the Right Regime

Ultrasonic testing typically launches waves with wavelengths comparable to or smaller than component dimensions, so bulk longitudinal and shear velocities govern. The following table separates the regimes:

Regime Governing relation Needs Included here
Ideal gas γRT/M\sqrt{\gamma R T / M} γ\gamma, MM, TT Yes
Liquid K/ρ\sqrt{K/\rho} KK, ρ\rho Yes
Slender rod (λ≫D\lambda \gg D) E/ρ\sqrt{E/\rho} EE, ρ\rho Yes
Bulk solid longitudinal (K+43G)/ρ\sqrt{(K + \tfrac{4}{3}G)/\rho} KK, GG, ρ\rho No
Bulk solid shear G/ρ\sqrt{G/\rho} GG, ρ\rho No

If you are inspecting a thick plate, weld, or casting with ultrasound, use bulk velocities from the material's data sheet or a calibration block.

Speed of Sound Measure: Calculated Versus Measured

A calculated speed is a model prediction from the properties you enter. An experimental measurement is typically a time-of-flight determination:

c=dtc = \frac{d}{t}

where dd is the path length and tt the transit time. The two agree only to the extent that the inputs and model assumptions match reality (humidity, composition, boundary conditions, temperature gradients). Use the calculator to predict an expected value and to sanity-check an instrument reading.

Unit Conversions for the Calculator for Speed of Sound

From To Operation
m/s\text{m/s} ft/s\text{ft/s} divide by 0.30480.3048
m/s\text{m/s} km/h\text{km/h} multiply by 3.63.6

Reading the Results Panel

The hero output (#speed-val) shows the speed in m/s\text{m/s} with a subtitle identifying the active model. Two secondary cells show feet per second (#feet-val) and kilometers per hour (#kmh-val). A worked-solution card prints the active substitution. For example, at T=293.15 KT = 293.15\text{ K}:

c=1.4×287.05×293.15=343.23 m/sc = \sqrt{1.4 \times 287.05 \times 293.15} = 343.23\text{ m/s}

One-Millisecond Wavefront Graphic

The SVG graphic (#sound-visual-svg, viewBox 0 0 600 300) draws two bars on a shared adaptive linear scale. They show the distance the wavefront covers in one millisecond, d=c×10−3 md = c \times 10^{-3}\text{ m}, for your selected case against a fixed reference of dry air at 20 ∘C20\ ^\circ\text{C}, which is 0.3432 m0.3432\text{ m} or 343.23 mm343.23\text{ mm} in 1 ms1\text{ ms}. The shared scale makes a 1,483.24 m/s1{,}483.24\text{ m/s} liquid read as a bar about 4.34.3 times longer than the air reference.

Advisories and Model Limits

The engine raises advisories when your inputs approach the edge of a model's validity:

ID Severity Trigger Message
temperature-model Warning Outside −100-100 to 100 ∘C100\ ^\circ\text{C} (T<173.15 KT < 173.15\text{ K} or T>373.15 KT > 373.15\text{ K}) Constant heat-capacity and gaseous-phase assumptions may degrade
ideal-gas Info Custom gas medium Natural gas results are ideal-gas estimates; high-pressure pipelines need real-gas equations of state
liquid-properties Info Liquid medium Enter isentropic bulk modulus and density at matching states; wall flexibility and aeration are excluded
rod-wave Info Rod medium Valid only for slender rods (λ≫D\lambda \gg D); differs from bulk ultrasound speeds

At 200 ∘C200\ ^\circ\text{C} the calculator returns 436.06 m/s436.06\text{ m/s} and displays the temperature-model warning, since real air's heat capacity varies over such a range and the constant-γ\gamma result becomes less reliable.

Quick Reference: Which Model to Select

Situation Medium Key inputs
Room-temperature air, quick answer Simple mode (air) Temperature
Helium, hydrogen, or other pure gas gas γ\gamma, MM, TT
Fuel-gas mixture estimate at low pressure gas Mixture γ\gamma and MM
Water, oil, or other liquid liquid KK, ρ\rho
Long steel, aluminium, or glass rod rod EE, ρ\rho

Frequently Asked Questions

Does humidity change the result? Not in this calculator. The dry-air model excludes relative humidity. Humid air is slightly less dense, which raises the speed of sound, but that effect is outside the model.

Why does doubling Celsius temperature not double the speed? Because c∝Tkelvinc \propto \sqrt{T_{\text{kelvin}}}. Only a fourfold increase in absolute temperature doubles cc.

Is the rod result the same as ultrasonic velocity in a block of steel? No. The rod formula assumes λ≫D\lambda \gg D. A bulk solid has constrained lateral strain and supports a faster longitudinal wave plus a shear wave.

Can I use this for pressurized natural gas? Only as an ideal-gas estimate. It does not include compressibility or a real-gas equation of state.

Does the tool send my data anywhere? No. All computation is local to your browser.

Calculation Methodology Documented

Read the formula definitions, supported input ranges, and limitations before using this estimate.

Review Methodology
Debjeet Bhowmick
Author Debjeet Bhowmick AWS Certified Solutions Architect • Cloud & DevOps Consultant

AWS Certified Solutions Architect Professional and Senior Cloud & DevOps Consultant with over 14 years of hands-on expertise architecting resilient cloud infrastructure across AWS, GCP, and Azure. Specializes in infrastructure as code, continuous delivery automation, and telemetry across Terraform, Ansible, Docker, Kubernetes, ELK, Python, and SQL. Creator of OrangeCalc, delivering client-side high-precision computational tools.