Saved

Press the star next to a tool's name to save it.

All my tools

Port Length Calculator

Use this port length calculator to find the length of each port of a bass-reflex speaker box from its net volume, tuning frequency, port diameter and number of ports.

Restored your last values ·

Hz

Choose US or metric units. Enter the net internal volume of the box, the frequency you want it tuned to, the inside diameter of the port and the number of ports, and say how the port ends are finished. You get the length of each port.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter the box volume, the tuning frequency, the port diameter and the number of ports, then press Calculate.

See full result

A port length calculator finds how long the port of a bass-reflex speaker box must be for the box to be tuned to a chosen frequency. Enter the net volume of the box, the tuning frequency, the inside diameter of the port and the number of ports, and it gives the length of each port in centimetres and inches.

How to use the port length calculator

  1. Choose US or metric units.
  2. Say how the port ends are finished: one flanged and one free, both flanged or both free.
  3. Enter the net volume, the tuning frequency, the port diameter and the number of ports.
  4. Press Calculate and read the length.

What a port does

A bass-reflex box has an opening, the port, which is a tube or slot that lets the air inside the box move. The air in the port acts together with the air in the box as a resonator, and the length and width of the port decide the frequency at which it resonates, which is called the tuning frequency. A longer port lowers the tuning, a shorter port raises it. Wikipedia describes this as the air mass in the port resonating with the springiness of the air inside the box [2], and its Helmholtz formula puts the port's effective length in the denominator, so a longer port lowers the frequency [1]. The calculator works out the length that gives the tuning you ask for.

The formula

The tool uses L = 23,562.5 × D² × N ÷ (V × F²) − k × D, with L and D in centimetres, V in litres and F in hertz. Here V is the net volume of the box, F is the tuning frequency, D is the inside diameter of the port, N is the number of ports and k is the end correction factor. The formula follows from the Helmholtz resonance formula, f = (v ÷ 2π)√(A ÷ (V L_eq)), where A is the port area, V the box volume, v the speed of sound and L_eq the port length plus an end correction [1]. Solving for the length, with a total port area of N × πD² ÷ 4 and a speed of sound of about 344 metres per second, gives the constant 23,562.5. This derivation is our own working.

The end correction

The second term, k × D, takes off a length for the ends of the tube, since a port with open ends acts a little differently from a plain tube. The tool uses three values for k: 0.850 when both ends of the port are flanged, 0.732 when one end is flanged and the other is free, and 0.614 when both ends are free. It starts with 0.732, one end flanged and one free, as its default. An open end makes the air behave as if the tube were a little longer than it is [3]. Wikipedia quotes a value of 0.6133 times the radius, calculated by Levine and Schwinger for an unflanged circular pipe [3], so two free ends of a port of diameter D add about 0.6133 D, which matches the 0.614 used here. We found no page that states the flanged values, so 0.850 and 0.732 are the tool's own design constants.

A worked example

Take a box of 50 litres tuned to 35 hertz with one port of 10 centimetres, with one end flanged. The first term is 23,562.5 × 100 ÷ (50 × 1,225) = 38.469 centimetres. The end correction is 0.732 × 10 = 7.32 centimetres. The length is 38.469 − 7.32 = 31.15 centimetres, or 12.26 inches.

A second example

Take the same box and tuning with a port 7.62 centimetres in diameter, which is a 3 inch tube. The first term is 22.34 centimetres, the correction is 0.732 × 7.62 = 5.58 centimetres, and the length is 16.76 centimetres. A wider port needs a much longer tube for the same tuning, because the first term grows with the square of the diameter.

More than one port

The formula includes N, the number of ports, and the length it gives applies to each port, a reading that is our own working. Two ports of the same diameter in a box of 30 litres tuned to 40 hertz, with a diameter of 7.62 centimetres, need each to be about 51.4 centimetres long.

The effect of tuning and volume

Because the first term is divided by V × F², a lower tuning frequency or a larger box both make the port longer in the formula. Keep the box at 50 litres and the diameter at 10 centimetres: tuning to 30 hertz gives a port about 45.0 centimetres long, against 31.15 at 35 hertz. A 70 litre box tuned to 35 hertz needs only 20.2 centimetres. These are our own runs of the formula.

When no length works

If the port is wide, or the box is large and the tuning high, the end correction can be as large as the acoustic term, and the formula gives zero or a negative length. In that case, the calculator tells you so instead of showing a meaningless number. The answer is a narrower port, a lower tuning frequency or a smaller box. Wikipedia also says that some experimentation with prototypes is still necessary [2].

US units

In US mode, the box volume is in cubic feet and the diameter in inches. We change them into litres and centimetres before the formula, using 1 cubic foot = 28.3168 litres and 1 inch = 2.54 centimetres, which is our own working, and the result is shown in inches with the centimetre figure beside it. A box of 1.77 cubic feet is about 50.1 litres, so it gives nearly the same answer as the metric example.

What the formula does not cover

The formula does not state its accuracy, and it assumes a fixed speed of sound of about 344 metres per second. It does not cover how fast the air moves in the port, which can cause audible noise at high power, nor leaks in the box, the properties of the driver or bends in the tube. The result is the length along the centre line of the port and is an estimate. Always measure the finished box, for example from its impedance curve, and trim the port to suit.

Common mistakes

  • Using the outside diameter of the tube. Use the inside diameter, as it is the open area that counts.
  • Using the gross volume of the box. Use the net volume, after taking away the driver, the port and any bracing.
  • Choosing the wrong end type. Count an end as flanged if it has a flange or a flush surround.
  • Taking the length as final. Treat it as a starting point and tune by measurement.

What next

Use this often? Add Port Length to your Home screen.

Frequently asked questions

What is a port length calculator?

A tool that finds how long a speaker box port must be to tune the box to a chosen frequency.

What is the port length formula?

L = 23,562.5 × D² × N ÷ (V × F²) − k × D, with L and D in centimetres, V in litres and F in hertz.

What are the end correction values?

k is 0.850 with both ends flanged, 0.732 with one flanged and one free, and 0.614 with both free.

Does a wider port need to be longer?

Yes. For the same box and tuning, the length grows quickly with the port diameter.

How accurate is the result?

It is an estimate, so build the port a little long and trim it while you measure the tuning.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools