sodcalculator

08 Everyday Math

King Post Truss Design Calculator

Tag 08-3789 · Updated · Standard formula, shown below

Rafter length 13.86 ft
Truss rise
6.93 ft
Result
King post length
6.93 ft
Result
Axial force in rafter
1,200 lb
Result
You enter
Truss span, Roof pitch, Total load on truss
You get
Rafter length, Truss rise, King post length, Axial force in rafter
Rounding
2 dp · 0 dp

A king post truss design calculator works out the member lengths, angles, and forces for a simple triangular roof truss with a single central vertical post. You enter the span, roof pitch, and either the load or the member sizes, and it returns the rafter, tie beam, and king post dimensions plus the axial forces in each member. The calculator below computes the geometry and basic load distribution for a symmetrical king post truss.

Formula

The king post truss is a simple triangle: a horizontal tie beam at the bottom, two sloping rafters meeting at the peak, and one vertical post (the king post) connecting the peak to the middle of the tie beam. The geometry is pure trigonometry:

  • Rafter length = (span ÷ 2) ÷ cos(pitch)
  • Rise (and king post length) = (span ÷ 2) × tan(pitch)
  • Axial force in each rafter = total load ÷ (2 × sin(pitch))

Where span is the horizontal distance between the outer supports (ft), pitch is the roof angle from horizontal (degrees), and load is the total vertical load on the truss (lb). The tie beam carries only tension, equal to the horizontal component of the rafter force, and the king post carries pure compression equal to half the total load.

Worked Example

Using the default values: span = 24 ft, pitch = 30°, load = 1200 lb.

  1. Rafter length = (24 ÷ 2) ÷ cos(30°) = 12 ÷ 0.866 = 13.86 ft
  2. Rise = (24 ÷ 2) × tan(30°) = 12 × 0.577 = 6.93 ft
  3. King post length = rise = 6.93 ft
  4. Axial force in rafter = 1200 ÷ (2 × sin(30°)) = 1200 ÷ 1.0 = 1200 lb

The calculator gives 13.86 ft for the rafter, 6.93 ft for the rise and king post, and 1200 lb for the rafter force. The tie beam tension would be 1200 × cos(30°) = 1039 lb, and the king post compression is 600 lb (half the load).

How a King Post Truss Works

The king post truss is one of the oldest and simplest structural forms, used for roofs, bridges, and even floor supports. Its beauty is that every member works in either pure tension or pure compression, with no bending moments if the joints are pinned. The two rafters slope down from the peak and push outward at the supports; the tie beam pulls those supports inward to resist that push; the king post hangs from the peak and supports the middle of the tie beam, preventing it from sagging under its own weight and any ceiling load.

For a symmetrical truss with a central load, the king post is always in compression, the tie beam is always in tension, and the rafters are in compression. This makes the truss very efficient in wood, which is strong in compression along the grain and reasonably strong in tension, but weak in bending. By keeping every member axially loaded, the truss can span much farther than a simple beam of the same material.

How to Choose a Calculator and What to Enter

Not all king post truss calculators are the same. Some only give geometry (lengths and angles), while others also compute forces. For design, you need both. The inputs you will typically provide are:

  • Span – the clear horizontal distance between the outer walls or supports.
  • Pitch – the roof slope, either as an angle in degrees or as a rise/run ratio (e.g., 4/12).
  • Load – the total vertical load on the truss, which includes dead load (roofing, sheathing, insulation, the truss itself) and live load (snow, wind, maintenance workers).
  • Spacing – how far apart the trusses are placed (usually 2 ft or 4 ft on center), which determines how much roof area each truss supports.

If a calculator asks for load per square foot instead of total load, multiply that by the tributary area (span × spacing) to get the total load. For example, a 30 lb/ft² total load on a 24 ft span with 4 ft spacing gives 30 × 24 × 4 = 2880 lb per truss.

Common Mistakes and Misconceptions

The most frequent error is mixing units – entering the span in feet but the load in pounds per square foot, or using the pitch as a ratio instead of an angle. Always convert to consistent units before running the calculation.

A second mistake is forgetting that the tie beam is in tension, not compression. Many people size it as if it were a beam carrying the ceiling load, but in a true king post truss the tie beam is pulled, not bent. The king post is what carries the ceiling load down to the tie beam, and the tie beam then transfers that load to the walls as a horizontal pull.

A third misconception is that the king post must be as long as the rise. That is true only if the tie beam is at the bottom of the truss. If the tie beam is raised (a “raised tie” truss), the king post is shorter. The calculator above assumes a bottom tie, which is the most common configuration.

Limitations of Simple Calculations

The geometry and basic force calculations above assume a perfectly symmetrical truss with pinned joints and a load applied at the peak. Real trusses have:

  • Joint stiffness (welded or nailed connections) that introduces bending moments.
  • Eccentric loads from purlins that land on the rafter, not at the peak.
  • Wind uplift that can reverse the direction of forces.
  • Deflection limits that may govern even if stress is acceptable.

For a real building, you need a full structural analysis that accounts for these effects. The calculator gives you a starting point for member sizing and a sanity check, but it is not a substitute for an engineer’s design. Building codes require a stamped design for anything but the smallest sheds.

Cost and Material Considerations

Material cost for a king post truss depends on the lumber grade and size. Common choices are 2×6 or 2×8 for rafters and tie beam, and 2×4 or 2×6 for the king post, depending on span and load. For a 24 ft span, you will likely need engineered lumber or a steel tie rod instead of a solid wood tie beam, because wood is weak in tension across long lengths and the end connections become large.

Steel king post trusses are also common, especially for industrial roofs. The same geometry applies, but the members are much smaller because steel is stronger. The calculator works for any material as long as you input the correct load and then check the resulting forces against the material’s allowable stress.

Labor cost is usually higher for a king post truss than for a simple rafter roof, because there are more joints to cut and fit. However, the truss can span a wider area with fewer interior supports, which may save on foundation and wall costs in the long run.

Safety and Professional Approval

Never use a free online calculator as the final design for a structure that will support people, snow, or heavy equipment. The numbers here are for educational and preliminary planning only. A structural engineer must verify:

  • Member sizes against allowable stress and deflection.
  • Connection details (nails, bolts, plates) that transfer the calculated forces.
  • Lateral bracing to prevent the truss from buckling out of plane.
  • Local building code requirements for snow, wind, and seismic loads.

If you are building a shed or a small outbuilding, check with your local building department – many allow a simple truss design if you follow prescriptive tables, but those tables are based on specific conditions that the calculator does not replicate. When in doubt, hire a professional. The cost of a design is far less than the cost of a roof collapse.

Frequently Asked Questions

What is the difference between a king post and a queen post truss?
A king post truss has one central vertical post, spanning up to about 30 feet. A queen post truss has two vertical posts, placed symmetrically off-center, and is used for spans from about 30 to 50 feet. The queen post truss is essentially two king post trusses side by side with a horizontal strut between the posts.

Can I use a king post truss for a flat roof?
No. A king post truss requires a slope to function – the rafters must push outward and the tie beam must pull inward. A flat roof has no slope, so the truss would not generate the horizontal forces that make it stable. For a flat roof, use a different system like a joist or a parallel-chord truss.

How do I convert roof pitch from a ratio to degrees?
Roof pitch is often given as rise over run, like 4/12. To convert to degrees, take the arctangent of the rise divided by the run: angle = atan(rise ÷ run). For 4/12, that is atan(4 ÷ 12) = 18.4°. Many calculators accept either form, but if yours only takes degrees, use this conversion.

What is the maximum span for a wooden king post truss?
With solid timber, a king post truss can span up to about 30 feet. Beyond that, the tie beam becomes too long and heavy to be practical, and the end connections grow large. For longer spans, use a queen post truss, a steel truss, or an engineered wood truss with glued-laminated members.

Does the calculator include the weight of the truss itself?
No. The load input is the total load you enter. If you want the calculator to account for the truss’s own weight, you must add an estimate to the load. For a wood truss, a rough estimate is 5–10 lb per square foot of roof area, but the actual weight depends on member sizes.

Why does the rafter force increase with a steeper pitch?
Actually, the rafter force decreases as pitch increases, assuming a fixed total load. The formula divides by sin(pitch), and sin increases with angle, so the force goes down. A steeper roof is more efficient at carrying vertical load because the rafters are more vertical, but it uses more material for the longer rafters.

Related

Formula used
in span | Truss span | ft | 24 | 4 | 60
in pitch | Roof pitch | ° | 30 | 5 | 60
in load | Total load on truss | lb | 1200 | 100 | 20000
out rafter | Rafter length | ft | (span / 2) / cosd(pitch) | 2
out rise | Truss rise | ft | (span / 2) * tand(pitch) | 2
out king | King post length | ft | (span / 2) * tand(pitch) | 2
out force | Axial force in rafter | lb | load / (2 * sind(pitch)) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More in this bed

The whole Everyday Math bed →