A P-wave is the faster of the two body waves a solid can carry, and its speed is set by three properties of the material: the bulk modulus K, the shear modulus G and the density ρ, combined as vp = sqrt((K + 4G/3) / ρ). The one thing to get right is the 4G/3: a compression cannot pass through a solid without distorting it as well as compressing it, so the shear stiffness resists the wave too — drop that term and the answer is several per cent low. This free calculator solves the relation for the speed, either modulus or the density, prints the S-wave speed and the ratio beside it, and shows every step.
Each button writes the bulk modulus, the shear modulus and the density into the three boxes, so the answer changes the moment you press it. The line underneath quotes back whatever the widget then works out, so nothing in it is stored text. All five sets of figures are stated givens chosen to make a point, not measurements of any named material.
Pick a case above, or type your own figures.

The P-wave speed calculator is a free online tool for how fast a P-wave — the faster of the two body waves a solid can carry — travels through a material: vp = sqrt((K + 4G/3) / ρ), in metres per second. Give it the bulk modulus K, the shear modulus G and the density ρ and it returns the speed; point the Solve for menu at any one of those three instead and it runs the same relation in that direction.
The term to get right is the 4G/3, and that single term is what this page exists to explain. A plane wave front leaves the material no room to spread: everything level with a compressed patch is squeezed in the same instant and holds it in, so the patch loses length along the path without gaining width across it — and resisting that change of shape is the second stiffness the wave must overcome. Drop the term and you get a plausible wrong answer: at the page's own opening figures of 50 GPa, 30 GPa and 2700 kg/m3, sqrt((K + G) / ρ) gives 5443.31 m/s instead of 5773.50, short by 330.19 m/s or 5.72 per cent.
A shear modulus of zero is a legal, meaningful entry here, not an error. It is the fluid case, and the honest reading is that the S-wave ceases to exist rather than slowing down: the S-wave chip reads an exact 0.00 and the speed-ratio chip reads "no S-wave" instead of an infinity, while the P-wave speed merely drops from 5773.50 to 4303.31 m/s. A shear modulus just above zero keeps both chips finite, so only the endpoint itself refuses.
The P-wave is always the faster of the two, and the page can show why rather than assert it. Its numerator is K + 4G/3 and the S-wave's is only G, so for any positive shear modulus the P-wave wins; the lowest the speed ratio can ever fall is the exact value sqrt(4/3), 1.1547, which the last preset puts on screen by setting the bulk modulus to zero. At the opening figures the ratio is sqrt(3), 1.7321 — but only because those figures make Poisson ratio exactly 0.25, which is a condition and not a fact about rock.
Some combinations have no answer and the page refuses them rather than inventing one. A speed slower than the shear modulus alone would give needs a negative bulk modulus, which is not a solid; two zero moduli describe no medium at all rather than a speed of zero; and a density of zero or less is refused for the same reason. The boundaries themselves are solvable and deliberately so: enter exactly 3849.00 m/s with G = 30 GPa and ρ = 2700 kg/m3 and the bulk modulus comes back as 0.00 GPa.
Both modulus boxes open in GPa and are a factor of 1e9 inside the formula, which is the step most often skipped by hand; the density is in kg/m3 and every speed on the page is in m/s. Every figure the page prints is a string its own engine produced, and the three material properties are always stated givens — no density or modulus on this page is attributed to a named rock, because none is measured or cited here. The only measured figures quoted are P-wave velocities, from the reference at the foot of the page.
What the page does not do is worth naming as plainly as what it does. It has no frequency and no wavelength box, so the relation between a speed and those two belongs elsewhere; it has no time or distance input, so it cannot turn a gap between two arrivals into a distance; and it describes one uniform, isotropic material rather than real layered, cracked, directional ground, which is where its own limits section begins.
| Symbol | Quantity | Default unit | Also accepts | Example value |
|---|---|---|---|---|
| vp | P-wave speed | m/s | km/s | 6000 |
| K | Bulk modulus, never negative | GPa | MPa, Pa | 50 |
| G | Shear modulus, zero is legal | GPa | MPa, Pa | 30 |
| ρ | Density, strictly positive | kg/m³ | g/cm³ | 2700 |
1e9 the calculator applies for you — by hand it is the step most often skipped.50 GPa. Zero is accepted and means something: the material resists a change of shape but not a change of volume, which puts the speed ratio on its exact floor. A negative modulus is refused.30 GPa. Zero is accepted here too and is the most interesting entry on the page — it is the fluid case, and the S-wave vanishes rather than slowing down.2700 kg/m3, and the menu offers g/cm3 if that is how your problem states it. It must be strictly positive. All three of these figures are stated givens on this page, never properties attributed to a named rock.5773.5 rather than 5773.50. Solving for the speed the unit beside it is m/s, and the working repeats the same figure in km/s because that is how the geophysical literature quotes it.sqrt(G / ρ), a different formula. Speed ratio is the P-wave speed divided by it. P-wave modulus is the K + 4G/3 the formula really uses. Poisson ratio fixes the speed ratio on its own.4G/3 and the P-wave modulus as separate lines, substitute every number and then check the answer by putting it back.Two neighbouring quantities are worth separating from this one before you start. This page says nothing about frequency or wavelength — for that relation use the wave speed calculator instead. And the symbol for the bulk modulus is not settled across physics: some texts, including our guide to how sound waves travel, write it as B rather than K, and the two are the same quantity.
The other elastic modulus a reader usually arrives with is Young's modulus, which is a third quantity again and is measured from a tensile test rather than from a wave — the Young's modulus calculator does that one. If you want the reasoning in prose, with the same figures worked through by hand, the P-wave guide argues the shear term out and sets eight problems on it.
K = 50 GPa, G = 30 GPa and ρ = 2700 kg/m3. These three were chosen because every result is exact: K + 4G/3 is exactly 90 GPa, the ratio is exactly sqrt(3) and ν is exactly 1/4.The table holds the bulk modulus at 50 GPa and the density at 2700 kg/m3 and sweeps the shear modulus from nothing to 50 GPa. Every Headline and chip cell was read out of the running widget rather than worked out by hand. Where a cell and the tool ever part company, believe the tool.
| Shear modulus (GPa) | P-wave modulus (GPa) | Headline speed (m/s) | S-wave chip (m/s) | Speed ratio chip | Poisson ratio chip |
|---|---|---|---|---|---|
| 0 | 50.00 | 4303.31 | 0.00 | no S-wave | 0.5000 |
| 5 | 56.67 | 4581.23 | 1360.83 | 3.3665 | 0.4516 |
| 10 | 63.33 | 4843.22 | 1924.50 | 2.5166 | 0.4063 |
| 20 | 76.67 | 5328.7 | 2721.66 | 1.9579 | 0.3235 |
| 30 | 90.00 | 5773.5 | 3333.33 | 1.7321 | 0.2500 |
| 40 | 103.33 | 6186.4 | 3849.00 | 1.6073 | 0.1842 |
| 50 | 116.67 | 6573.42 | 4303.31 | 1.5275 | 0.1250 |
Three things move together down that table and one moves against them. Both speeds rise with the shear modulus at every step, the speed ratio falls towards 1.5275, and Poisson ratio falls from 0.5000 to 0.1250 — so a material that resists a change of shape more strongly is not just faster, it is differently proportioned. The top row is the only one where the ratio has no value at all.
Two repeats in that table are arithmetic, not a copy-and-paste slip. 4303.31 appears as the headline at G = 0 and as the S-wave chip at G = 50, and 3849.00 appears as the S-wave chip at G = 40 and as the headline when the bulk modulus is set to zero instead.
Switching the Solve for menu runs the same rows backwards. From a speed of 6000 m/s with G = 30 GPa and ρ = 2700 kg/m3 the bulk-modulus mode returns 57.2 GPa; from the same speed with K = 50 GPa the shear-modulus mode returns 35.4 GPa; and from that speed with both moduli given, the density mode returns 2500 kg/m3.
| Symbol | What it is | Unit | On this page |
|---|---|---|---|
| vp | The P-wave speed: the quantity this page is named after, and the faster of the two body waves a solid can carry | m/s | Box menu reads m/s or km/s. Headline 5773.5 at the defaults, 4303.31 with no shear stiffness, 3849 with no bulk stiffness. Default 6000 when it is an input. |
| K | The bulk modulus: how hard the material is to change in volume. Never negative; 0 is legal |
GPa | Box menu reads GPa, MPa or Pa, and GPa is a factor of 1e9 inside the formula. 50 GPa is the default. |
| G | The shear modulus: how hard the material is to change in shape. Never negative; 0 is legal and is the fluid case |
GPa | Same menu as K. 30 GPa is the default; 0 drops the speed to 4303.31 m/s and removes the S-wave entirely. |
| ρ | The density of the material. Strictly positive, because a wave needs something to travel through | kg/m3 | Box menu reads kg/m3 or g/cm3. 2700 kg/m3 is the default, which is 2.7 g/cm3. |
| M = K + 4G/3 | The P-wave modulus: the single stiffness the formula actually uses, so that it reads vp = sqrt(M / ρ) | GPa | A chip beside the answer, never an input: 90.00 GPa at the defaults, of which 40.00 GPa is the shear term. |
| vs | The S-wave speed, sqrt(G / ρ) — a different formula, carrying only the shear modulus | m/s | A chip beside the answer: 3333.33 m/s at the defaults, and an exact 0.00 when G is zero. |
| ν | Poisson ratio, (3K − 2G) / (2(3K + G)). It fixes the speed ratio on its own | dimensionless | A chip beside the answer: 0.2500 at the defaults, 0.5000 when G is zero, -1.0000 when K is zero. |
A P-wave is a compression running through the material, so the obvious stiffness for it to meet is the bulk modulus — the resistance to being squeezed smaller. That alone would give sqrt(K / ρ), which at the page defaults is 4303.31 m/s. The real answer is 5773.5 m/s, and every metre per second between those two figures is the shear term.
The reason is geometry. A compression arrives everywhere along the flat front in one moment, so a small patch of the material has nothing to expand into and is squashed from a cube into a thinner slab of the same cross-section rather than into a smaller cube. Deforming something out of its own shape, and not merely into a smaller copy of itself, is what the shear modulus charges for — which is why the working prints 4G/3 on a line of its own before it adds K.
That is also why the P-wave always wins the race. Its numerator is K + 4G/3 and the S-wave's is only G, and since 4G/3 already exceeds G for any positive shear modulus while K is never negative, the P-wave numerator is always the larger. The lowest the ratio can fall is the exact value sqrt(4/3) = 1.1547, which the last preset puts on screen by setting the bulk modulus to zero.
What the shear modulus physically is gets its clearest treatment on this site in torsion rather than in waves, where it is the stiffness that resists a twist: the polar moment of inertia guide is the honest place to send that question. The broader framing — that every wave speed is a stiffness divided by an inertia under a square root — is set out in the guide to wave speed in different media, and this formula is one instance of it with two stiffnesses instead of one.
The S-wave speed is vs = sqrt(G / ρ), which is a genuinely different formula rather than a mode of the one above: the bulk modulus is not in it at all. It is printed as a chip beside every answer, so the two speeds are always on screen together — 3333.33 m/s against 5773.5 m/s at the defaults, a ratio of 1.7321.
That ratio is sqrt(3) exactly, and it is worth saying precisely why, because it is easy to quote as a fact about rock when it is not. The ratio is fixed by Poisson ratio alone, through vp/vs = sqrt((2 − 2ν) / (1 − 2ν)), and the default figures make ν exactly 0.25 — which is the only reason sqrt(3) appears. Change the shear modulus and the ratio moves with it, as the table above shows.
Because the S-wave formula is a one-liner, the shear modulus can also be recovered from a measured S-wave speed without this page's main solve: G = ρvs2. An S-wave measured at 3600 m/s in material of stated density 3000 kg/m3 needs G = 38.88 GPa — and you can check that against the widget directly: type that shear modulus and that density, and the S-wave chip reads 3600.00 m/s back. The solve-for-G mode runs the other route, from a P-wave speed and a bulk modulus, and its working prints both so the two can be compared.
G = 0 the S-wave chip is an exact 0.00 and the ratio chip reads no S-wave rather than an infinity, while the P-wave speed merely drops to 4303.31 m/s — a factor of sqrt(5/9). Poisson ratio is exactly 0.5000, the incompressible limit.K or G from a composition, a mineral or a depth, and no figure on this page is a measured property of a named rock. Where a measured number is quoted it is a velocity, from the reference below. That is also the honest way round the inversion runs in practice: a velocity is what gets measured, and a modulus is what gets inferred from it.sqrt((4G/3) / ρ) would need a negative bulk modulus, and a speed slower than sqrt(K / ρ) would need a negative shear modulus; neither is a solid, so both are refused instead of printed. Both moduli at zero is refused too, because that is the absence of a medium rather than a speed of zero. Sit exactly on a boundary, though, and it is answered rather than refused: 3849.00 m/s at G = 30 GPa and ρ = 2700 kg/m3 returns a bulk modulus of 0.00 GPa, not an error.K mode at a stated density of 2700 kg/m3 and no shear term implies a P-wave modulus of 90.83 to 100.47 GPa. The round-number case this page opens on, with M = 90.00 GPa, gives 5773.50 m/s — 26.50 m/s, or 0.46 per cent, below the bottom of that measured band.12.68 seconds over 100 km, which is the ratio chip turned into time. The amplitude side of that story, and why the later arrival is the damaging one, is in the amplitude guide.6000.00 m/s (6.0 km/s), the lower mantle at 13500.00 m/s (13.5 km/s) and the inner core at 11000.00 m/s (11.0 km/s). Reaching 13500 m/s at a stated density of 2700 kg/m3 would need a P-wave modulus of about 492 GPa, which is 5.47 times this page's opening case — so the deep Earth is not the same material under more pressure, it is a different material.sqrt((4G/3) / ρ) is wrong before you look at the working, and any speed ratio below 1.1547 is wrong too, whatever the material — that is what the P-wave modulus and Speed ratio chips are for. A speed quoted in km/s where m/s was meant is the other half of the same check, and is a factor of a thousand.
K = 0 the speed ratio sits on its exact floor, sqrt(4/3) = 1.1547, and Poisson ratio reads -1.0000 — the theoretical lower bound, where no real material sits.For the definition, the shear term argued out in prose and a full set of worked problems, read the P-wave guide, which this tool is the arithmetic half of. The guide to transverse and longitudinal waves covers what separates the two body waves and how to get a distance out of their arrival-time gap, the guide to how sound waves travel covers the fluid case this formula reduces to when the shear modulus is zero, and the physics symbols guide sorts out the letters.
Four tools sit beside this one. The speed of sound calculator handles the gas case; the wave speed calculator relates a speed to a frequency and a wavelength; the Young's modulus calculator measures the third elastic modulus from a tensile test; and the polar moment of inertia simulator is where the shear modulus shows up as a twist. The full physics lab library and the calculator index are open too.
It works out how fast a P-wave travels through a solid, from v_p = sqrt((K + 4G/3)/rho). K is the bulk modulus and G the shear modulus, both entered in GPa, and rho is the density in kg/m³. The same relation is rearranged three more ways, so you can enter any three of the four quantities and read the fourth.
It is v_p = sqrt((K + 4G/3)/rho), for an isotropic, homogeneous solid. The combination K + 4G/3 is called the P-wave modulus and is usually written M, which makes the formula simply v_p = sqrt(M/rho). Real ground is layered and directional rather than uniform, so the formula gives the speed of one material and not of a whole structure.
Because a compression changes the proportions of a solid as well as its volume. The front is flat, so the squeezed region is penned in by material being squeezed at the same time, and it gets shorter along the path while staying as wide across it. Resisting that distortion is what the shear modulus does, so a liquid of the same bulk modulus and density carries the wave more slowly.
Because the P-wave carries K + 4G/3 under the square root and the S-wave carries only G. For any positive shear modulus 4G/3 is already larger than G, and the bulk modulus is never negative, so the P-wave numerator always wins. The lowest the speed ratio can ever fall is sqrt(4/3), which is 1.1547, reached when the bulk modulus is zero.
The S-wave speed becomes exactly zero and the speed ratio has no value, while the P-wave speed stays finite and simply drops. At the page defaults it falls from 5773.50 m/s to 4303.31 m/s, a factor of sqrt(5/9). The honest reading is that the S-wave has ceased to exist rather than slowed down, which is why the ratio chip refuses instead of printing a very large number.
Because the default figures make Poisson ratio exactly 0.25, and the ratio of the two speeds is fixed by that one number: sqrt((2 - 2nu)/(1 - 2nu)). Put nu = 0.25 in and it returns sqrt(3), which is 1.7321. It is a consequence of that specific Poisson ratio and not a general fact about rock, so the condition has to travel with the result.
Either, because both boxes carry a unit menu, but they open in GPa since that is how elastic properties are tabulated. Inside the formula everything is in pascals, and the calculator does that conversion itself. By hand it is the step most often skipped, and skipping it is a factor of a thousand million.
Because some combinations genuinely have none, and printing a number for them would be worse than saying so. A P-wave speed slower than the shear modulus alone would give needs a negative bulk modulus, which is not a solid, so the panel refuses rather than printing a negative figure. Two zero moduli are refused too, since that describes no medium at all, and a zero or negative density is refused for the same reason.
It is the same idea in a different medium, and the formula is different because the medium is. A gas has no shear stiffness at all, so its sound speed comes from the gas law rather than from a shear modulus. The thin-rod speed quoted for a metal bar is a third, separate formula, so none of the three should be substituted for another.