Exhaust Scavenging Calculator

Work out the header primary length that puts the returning exhaust suction wave at the valve during overlap, for the rpm you want, or the rpm an existing primary is tuned to. It uses the speed of sound in your exhaust gas and your cam’s valve events, gives the length for the first three returns of the wave, and checks the primary diameter by the gas speed it produces.

Calculator Automotive Updated Oct 5, 2026
Learn how this works
How to Use
  1. Choose Primary length for an rpm to design a header, or Tuned rpm of a primary to see what an existing header suits.
  2. Enter the rpm you want the scavenging to help most (or the primary length, measured from the valve seat through the port to the collector merge).
  3. Enter the cam’s valve events from the cam card: when the exhaust valve opens (degrees before BDC), and when the intake opens and the exhaust closes (degrees around TDC). They set when the pressure pulse starts and when overlap happens.
  4. Enter the gas temperature in the primary, the fuel and the air-fuel ratio; together they set the speed of sound, which sets the length.
  5. For the diameter check, enter the bore, stroke and the primary tube size. Show Work lists the gas speed for seven common tube sizes so you can compare them.
Input
rpm
° before BDC (cam card)
° before TDC
° after TDC
by mass
.049 in = 18 ga, .065 in = 16 ga
Presets
Pressure Wave in the Primary
Length, 1st return
—
Length, 2nd return
—
Length, 3rd return
—
Gas speed in the primary
—

Worked Example

A 350 V8 tuned for 6,000 rpm. The cam opens the exhaust valve 60° before BDC, and overlap runs from 25° before to 25° after TDC, so it is centred on TDC. From valve opening to mid-overlap the crank turns 180 + 60 + 0 = 240°, which at 6,000 rpm (36,000° per second) takes 6.667 ms. The rich exhaust at 1,300 °F has γ = 1.301 and R = 294.4 J/(kg·K), so sound travels at √(1.301 × 294.4 × 977.6 K) = 612.0 m/s, 2,008 ft/s. In 6.667 ms a wave covers 160.6 in, so the primary for one round trip is 80.3 in, for two round trips 40.2 in and for three 26.8 in.

The diameter. At 6,000 rpm the 3.48 in stroke gives a mean piston speed of 58.0 ft/s, and a 1-3/4 in primary (1.62 in inside) carries the gas at 58.0 × (4.00 ÷ 1.62)² = 353.6 ft/s, Mach 0.18. A 1-5/8 in primary would carry it at 415.2 ft/s and a 1-7/8 in at 304.8 ft/s.

The common mistake: the speed of sound in cold air. Sound travels at about 1,126 ft/s (343 m/s) in 20 °C air, and some rules quote it. Using it instead of the 2,008 ft/s of 1,300 °F exhaust gives a 2nd-return primary of 22.5 in instead of 40.2 in, 44 % too short, and the header would be tuned to the wrong rpm.

Show Work

Enter values and calculate to see the step-by-step breakdown.

Formulas

Crank angle for the wave
θ = 180 + EVO + (EVC − IVO) ÷ 2
EVO in ° before BDC; IVO in ° before TDC; EVC in ° after TDC
Time available
t = θ ÷ (6 × rpm)
The crank turns 6 × rpm degrees per second
Speed of sound in the exhaust
a = √(γ × R × T)
γ and R of the combustion products; T absolute
Tuned length
Ln = a × t ÷ (2n)
n = number of round trips the wave makes (1st, 2nd, 3rd return)
Tuned rpm
rpmn = a × θ ÷ (12 × n × L)
The same relation solved for engine speed
Gas speed for the diameter
v = Sp × (bore ÷ ID)²
Sp = 2 × stroke × rpm ÷ 60, the mean piston speed

The Model and Its Limits

What scavenging is. Burns Stainless, in Do Harley Engines Need Backpressure?, describe scavenging as a negative pressure wave arriving at the exhaust valve during valve overlap, helping to clear the residual gas; primary length, collector design and exhaust geometry decide when the reflected waves get back to the valve. Garrett’s Turbo Tech 102 lists tuned primary lengths, equal lengths and large-radius bends among the features of a good manifold. MIT’s course 2.61 (OpenCourseWare, 2017, lecture 8) gives typical passenger-car valve timing as the exhaust opening 30–50° before BDC and closing 0–15° after TDC, with the intake opening up to 15° before TDC; racing cams open earlier and overlap more.

The model. This calculator uses plain acoustic wave timing. The pulse starts when the exhaust valve opens and travels at the speed of sound, √(γRT) (NASA Glenn Research Center). At the open end of the primary, where it meets the collector, a pressure pulse reflects as a low-pressure (suction) pulse; the University of New South Wales’ physics notes on open and closed pipes explain why. The length is chosen so the suction pulse is back at the valve in the middle of overlap, after one, two or three round trips. Earlier versions of this page used an empirical formula and collector rules of unknown origin; they have been replaced by this stated model.

Its limits. The real pulse is not a small sound wave: it is strong, it rises over several degrees after the valve cracks open, and the gas it travels through is flowing out, which speeds the outgoing wave and slows the returning one (by about 18 % each way at Mach 0.18). The gas also cools along the pipe, and the collector is a partial, not a perfect, open end. Cam-card figures are often quoted at .050 in lift, later than the valve actually starts to open. So treat the lengths as a starting point to test on the dyno, not a final answer. Wave timing says nothing about diameter, and Burns Stainless state there is no single formula for collector outlet size either; this page reports gas speed for the diameter and leaves the collector to the header maker’s testing.

About This Calculator

This calculator sizes header primaries by the timing of the exhaust pressure wave. It works out the crank angle between the exhaust valve opening and the middle of overlap, the speed of sound in your exhaust gas, and the primary length for the first three returns of the wave, or the rpm an existing primary is tuned to. It then shows what each common tube size does to the gas speed, so length and diameter can be chosen together.

It is one of six exhaust calculators. The gas speed in more detail is in the Exhaust Gas Velocity Calculator; the flow behind it in the Exhaust Flow Rate Calculator; the cooling that changes the speed of sound along the pipe in the Exhaust Heat Loss Calculator; the restriction in the Exhaust Backpressure Calculator; and the turbo side in the Turbo Exhaust Flow Calculator. The background is in Exhaust Systems & Headers.

Work on headers only with the engine cold and the car on stands, and follow the vehicle maker’s figures for clearances to fuel lines, brake lines and wiring. Everything runs in your browser; nothing you enter is sent anywhere.

Related tools: Intake Runner Length Calculator, Engine Displacement Calculator, and Compression Ratio Calculator.

Frequently Asked Questions

How do you calculate header primary length?

Time how long a pressure wave takes to run down the primary and back. When the exhaust valve opens, a pressure pulse travels down the pipe at the speed of sound; at the open collector it reflects as a suction pulse that runs back to the valve. With the valve opening 60° before BDC and overlap centred on TDC there are 240° of crankshaft rotation for the trip, 6.667 ms at 6,000 rpm. In exhaust at 1,300 °F sound travels at 2,008 ft/s, so one round trip fits in 80.3 in, two in 40.2 in and three in 26.8 in.

What is exhaust scavenging?

Using the exhaust’s own pressure waves and momentum to help empty the cylinder. Burns Stainless describe it as a negative pressure wave arriving at the exhaust valve during valve overlap, when both valves are open, which helps pull out the remaining burnt gas and starts the fresh charge moving. Static backpressure does the opposite; it only resists the piston.

Why does the calculator give three lengths?

Because the wave can make more than one round trip before overlap. A 1st-return length is long: 80.3 in for the 350 V8 example at 6,000 rpm. Lengths that let the wave go up and back two or three times (40.2 in and 26.8 in) put a suction pulse at the valve at the same moment, which is why the same primary works at several speeds: a 32 in primary suits 15,060, 7,529 and 5,019 rpm with this cam and temperature.

How do I choose the primary tube diameter?

Wave timing sets the length, not the diameter. The diameter sets the gas speed: the piston pushes the gas out at its speed times (bore ÷ ID)². For the 350 V8 at 6,000 rpm that is 494 ft/s in 1-1/2 in tube, 354 ft/s in 1-3/4 in and 265 ft/s in 2 in, all with a .065 in wall. Burns Stainless warn that an oversized pipe slows the gas, spreads the pulse and weakens scavenging, while too small a pipe restricts flow at high rpm; header makers settle the size with flow-bench and dyno testing for each engine.

Does exhaust temperature change the tuned length?

Yes, because sound travels faster in hotter gas: a = √(γRT). Tuning the 350 V8 for 4,500 rpm with 1,200 °F gas (1,953 ft/s) gives 104.2, 52.1 and 34.7 in. Using the speed of sound in room-temperature air, 1,126 ft/s, instead of hot exhaust would make every length 44 % too short.

How do I use the Exhaust Scavenging Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Designing a header

A 350 V8 tuned for 6,000 rpm with the valve opening 60° before BDC needs 80.3, 40.2 or 26.8 in primaries for the 1st, 2nd or 3rd return of the wave at 1,300 °F.

Checking an existing header

A 32 in primary with the same cam and gas temperature is tuned to 15,060, 7,529 and 5,019 rpm.

Moving the torque peak

Retuning the 350 from 6,000 to 4,500 rpm lengthens the 3rd-return primary from 26.8 in to 34.7 in.

Metric engines

A 2.0 L four at 7,500 rpm, valve opening 50° before BDC and 850 °C gas, gives 1,674, 837 and 558 mm.

Comparing tube sizes

The Show Work table lists the gas speed for 1-1/2 to 2-1/4 in tube: 494 ft/s down to 206 ft/s for the 350 V8 at 6,000 rpm.

Last updated: