Structural analysis and preliminary design

Advanced Roof Truss Design Calculator

Model roof truss geometry, loads, forces, members, bearings, connections, deflections, and reports. Verify final designs with qualified structural engineering review.

Single-file application 2D stiffness solver Metric and imperial-ready workflow Version 1.0.0
Engineering limitation: This calculator provides preliminary elastic truss analysis and simplified capacity screening. Final truss drawings, connector plates, bearings, bracing, load paths, code factors, and construction changes require qualified professional review.
1

Project information

Identify the calculation and record project assumptions.

The solver uses SI internally. Unit conversion helpers are included in the interface.
2

Truss configuration and geometry

Select a preset or define a custom node-and-member model.

Configuration

Preset web layouts are intended for rapid modelling. Final production geometry must match engineered truss drawings.

Most pitched presets use an even count.

Primary dimensions

Enter bearing-to-bearing span and vertical geometry in metres.

m
m
degrees
in / 12
m
m
Recorded for reporting. It is not subtracted from elastic deflection.
m
Shown as project data. Current analysis span ends at the bearing.
m
m
m
Used for project quantities and future layout comparisons.
m
m

Supports

A stable simple truss normally uses one pin and one horizontal roller support.

Custom node and member definition
One node per line: x, y, optional role. Use left_support and right_support roles.
Node numbering follows the order entered in the custom node box.

Live geometry preview

The preview helps catch dimension errors before server-side structural analysis.

3

Materials and common member section

Define elastic properties, strength values, dimensions, and stability assumptions.

Material definition

Properties must be verified for the applicable product, grade, moisture condition, temperature, treatment, and design standard.

GPa
kg/m³

Common member section

The current solver assigns one section to all truss members. Review the member table before applying group-specific sizes externally.

mm
mm
mm²
mm⁴

Strength values

Enter design-level strengths consistent with the selected method. Do not mix nominal, characteristic, allowable, and factored values.

MPa
MPa
MPa
MPa
MPa
MPa
Strength modification and resistance factors
Buckling and unbraced-length assumptions
m
MPa
4

Loads and load distribution

Enter unfactored area loads. The calculator converts them to panel-point loads.

Dead loads

Include roofing, sheathing, battens, ceiling, insulation, services, solar equipment, and permanent attachments.

kPa
kPa
kPa
kPa
kN/m

Imposed, environmental, and construction loads

Confirm locally applicable roof live, snow, rain, drift, wind, storage, and construction requirements.

kPa
kPa
Model drift and unbalanced snow as custom point loads or separate runs.
kPa
kPa
kPa
kPa
kPa
kPa
kPa

Distribution and projection

Area loads are multiplied by truss spacing and each panel point’s tributary width.

The current solver applies the tributary-width method.
Concentrated node loads
Categories: dead, live, snow, rain, wind_down, wind_up, wind_horizontal, or construction. Positive X acts right. Positive Y acts upward.
5

Design method, combinations, and checks

Choose analysis assumptions, serviceability limits, connection screening, and reporting precision.

Design basis

Built-in combinations are generic examples. Replace them with project-specific combinations where required.

Selection is recorded in the report. Verify actual code equations externally.
Custom load combinations
Symbols: D, L, S, R, WD, WU, WH, C. Example: Name | D=1.2,L=1.6.

Serviceability limits

Ratios are expressed as span divided by allowable displacement.

L / ratio
L / ratio
Stored for reporting. Envelope currently uses total combination deflection.
L / ratio
report

Connection screening and cost assumptions

Use these fields only for initial comparison. Complete connection design requires connector-specific equations and detailing.

kN
%

Analysis switches

Advanced switches expose assumptions that require careful engineering interpretation.

%
Creates an equivalent moment from axial force and member length.
Before calculating: verify geometry, units, load signs, material values, bracing, and design assumptions.

Formula used and calculation methodology

The calculator applies a linear-elastic, pin-jointed, two-dimensional truss model.

The solver converts roof area loads into joint loads. It assembles a global stiffness matrix. It then solves joint translations, reactions, and axial member forces for each load combination.

Geometry and roof pitch

For a symmetrical pitched roof, the rise can be calculated from the span and roof angle. The half-span is used because the ridge is located at the centre for symmetrical presets.

Rise = (Span ÷ 2) × tan(Pitch angle)

For rise-per-twelve input, the pitch ratio is divided by twelve. That slope is then multiplied by the half-span. Mono-pitch trusses use the full span when generating the top-chord elevation.

Area load conversion

An area load in kilopascals is numerically equal to kilonewtons per square metre. The load on one truss equals the area load multiplied by truss spacing and panel tributary width.

Panel-point load = Area load × Truss spacing × Tributary width

End panel points receive one half-panel tributary width. Interior points receive one half of the adjacent panel on each side. Sloped-surface projection uses the distance along the roof chord. Horizontal projection uses plan width.

Member stiffness

Each truss member is represented by an axial bar element. Its local axial stiffness depends on elastic modulus, cross-sectional area, and member length.

k = EA ÷ L

The member direction cosines transform local stiffness into the global horizontal and vertical coordinate system. All element matrices are added into one global structural stiffness matrix.

Global equilibrium

The solver restrains the selected support degrees of freedom. It extracts the free-degree stiffness matrix and solves the simultaneous equations using Gaussian elimination with pivoting.

[K]{u} = {F}

Here, K is the assembled stiffness matrix. The vector u contains joint translations. The vector F contains applied nodal loads. Reactions are recovered from the complete stiffness equation after displacements are known.

Axial member force

The calculated displacement at each member end is projected onto that member’s axis. Axial extension is multiplied by EA/L. Positive force is reported as tension. Negative force is reported as compression.

N = (EA ÷ L) × [−c −s c s]{umember}

Axial stress

Axial stress is calculated from the controlling envelope force and common member area.

Axial stress = Axial force ÷ Cross-sectional area

Euler buckling screening

Compression capacity is limited by both the entered compression strength and elastic Euler buckling. The smaller in-plane or out-of-plane buckling value controls the simplified compression result.

Pcr = π²EI ÷ (KL)²

Actual timber and steel compression design often needs additional column curves, stability factors, residual stress treatment, local buckling, size factors, and product-specific rules. Those detailed provisions are not automatically supplied by this generic equation.

Simplified bending allowance

An ideal truss carries joint loads through axial force. Real members can experience bending from loads between panel points, connection eccentricity, offsets, and fabrication tolerances. The optional allowance creates an equivalent screening moment.

Mscreen = |N| × L × Allowance percentage ÷ 8

The combined screening ratio adds the axial utilization and bending utilization. This is intentionally conservative in some situations and unconservative in others. A frame-element analysis is needed when meaningful member bending exists.

Deflection

The program reports the largest solved joint displacement. It compares vertical displacement with the entered span ratio.

Allowable deflection = Span ÷ Selected ratio

Long-term timber creep, connector slip, moisture movement, fabrication tolerances, support settlement, composite ceiling effects, ponding feedback, and vibration are outside the basic elastic displacement calculation.

Bearing stress

The maximum downward support reaction is divided by the entered bearing length and member width.

Bearing stress = Support reaction ÷ Bearing area

The required bearing length is estimated from reaction, allowable bearing stress, and member width. Check wall plates, masonry, concrete, steel seats, anchors, crushing, splitting, eccentricity, and local reinforcement separately.

Self-weight and quantities

Member volume equals member length multiplied by area. Mass equals volume multiplied by density. Weight uses standard gravitational acceleration. Cost uses entered mass cost, waste percentage, and a simple connection cost per node.

Mass = Total member length × Area × Density

How to use this calculator

Follow a controlled modelling sequence and review every warning.

1. Define the project

Enter a project name, number, revision, location, designer, and design notes. Record the source of every material value and load assumption. A useful report must allow another reviewer to understand the model.

2. Select the truss layout

Choose a preset matching the intended structural arrangement. Enter span, rise, panel count, heel height, spacing, and bearing lengths. Use custom geometry when the real panel points do not match a preset.

3. Confirm stability

Use a pinned support on one end and a horizontal roller on the other for a typical simple model. Check the diagram for disconnected joints, duplicate members, missing diagonals, or unsupported mechanisms.

4. Enter verified properties

Choose timber, engineered wood, or steel. Enter elastic modulus, density, dimensions, strength values, resistance factors, and service modifiers. Values must match the intended grade and governing standard.

5. Build the load model

Enter dead, live, snow, rain, wind, storage, and construction loads. Add concentrated equipment loads at actual panel points. Use separate runs or custom combinations for unbalanced snow and unusual load patterns.

6. Set combinations and limits

Select a strength or allowable-stress workflow. Review every built-in factor. Add project-specific combinations. Set deflection ratios, bracing lengths, bearing capacity, and preliminary connection capacity.

7. Calculate and inspect

Press the calculation button. Start with the overall result. Then inspect warnings, critical members, reactions, joint displacements, connection screening, bearing stress, and controlling load combinations.

8. Revise and document

Increase sections, improve bracing, change topology, reduce spacing, or correct load assumptions. Save the project JSON. Export result tables. Print the calculation package for independent engineering review.

Recommended review sequence

  1. Confirm the generated geometry matches the intended truss.
  2. Confirm supports create a stable and realistic load path.
  3. Confirm loads act at panel points and use correct signs.
  4. Review every strength modifier and resistance factor.
  5. Check the critical compression member and its bracing.
  6. Check uplift reactions and continuous hold-down anchorage.
  7. Check bearing length and support material capacity.
  8. Complete connector and permanent bracing design separately.
  9. Have a qualified structural professional approve the final design.

Roof truss design guidance

Key concepts for interpreting the model and avoiding common errors.

Truss action and load paths

A roof truss works efficiently when external loads enter at joints. Top chords commonly carry compression under gravity loads. Bottom chords commonly carry tension. Webs transfer force between chords and supports. Wind uplift may reverse many member forces. A member designed only for gravity compression can therefore experience tension during uplift.

The truss is only one part of the structural load path. Roof sheathing, purlins, battens, permanent bracing, gable restraints, wall plates, anchors, walls, diaphragms, and foundations must move forces safely into the ground. A strong truss does not correct a weak building load path.

Panel points and secondary bending

Ideal truss theory assumes pinned joints and loads at joints. Roofing loads are often delivered by purlins or sheathing. Their support locations should align with panel points where practical. Loads between joints bend the chord. Eccentric connector plates, heel offsets, raised bearings, and splice geometry can also introduce moments.

Use the bending allowance only as a warning screen. Use a frame model or detailed truss-design method when bending materially affects member demand. Deep heels, cantilevers, attic openings, and mechanical equipment often need more advanced modelling.

Compression members and restraint

Compression strength often depends more on restraint than material strength. The in-plane truss geometry restrains some member movement. Out-of-plane buckling depends on purlins, ceiling systems, lateral restraints, and permanent diagonal bracing. A compression web requiring restraint must have that restraint connected into a stable bracing system.

Entering a short out-of-plane unbraced length without providing physical restraint creates a misleading capacity. Verify the restraint location, force, connection, splice continuity, and anchorage. Temporary erection bracing is also essential before the permanent system becomes effective.

Connections govern many trusses

Metal connector plates, plywood gussets, bolts, nails, screws, and welded steel gussets each behave differently. Capacity can depend on plate area, tooth direction, fastener diameter, embedment, withdrawal, group action, net section, block shear, edge distance, end distance, splitting, moisture, and fabrication quality.

The joint screening table does not design these mechanisms. It helps identify joints carrying large force. Production trusses require connector-specific engineering, manufacturing controls, and drawing information.

Deflection and ceiling performance

Strength is not the only requirement. Excess movement can crack ceilings, disturb partitions, cause ponding, damage finishes, or change roof drainage. Differential movement between adjacent trusses can be as important as absolute deflection. Long-term timber creep can substantially increase sustained-load movement.

Scissor trusses can develop horizontal support movement. Supports and walls must accommodate or resist that thrust. Attic trusses have floor serviceability requirements. Vibration, concentrated floor loads, and room comfort may govern even when axial member checks pass.

Snow, wind, rain, and special loads

Balanced snow is only one snow condition. Unbalanced snow, drift, sliding snow, rain-on-snow, and local accumulation can control web forces. Wind pressure changes by roof zone, slope, building openness, internal pressure, edge distance, and component area. Uplift should be traced through every connection.

Rain load depends on drainage geometry and blocked-drain scenarios. Ponding is nonlinear because added deflection collects more water. Solar panels can add dead load, concentrated attachment forces, wind effects, snow drifting, and altered drainage. Suspended ceilings, ducts, sprinklers, tanks, hoists, and maintenance walkways need explicit load paths.

Changes after fabrication

Do not cut, drill, notch, splice, remove, or relocate truss members without an engineered repair. Do not move concentrated loads without checking the truss. Field changes can alter force distribution and connector demand. Repairs should show materials, fasteners, preparation, installation sequence, and required temporary support.

Frequently asked questions

Answers explain the calculator’s scope and major design limitations.

Can this calculator produce a construction-ready truss design?

No. It provides preliminary elastic analysis and simplified checks. Construction-ready trusses require verified design loads, code-specific member equations, connector engineering, permanent bracing, manufacturing details, bearing design, and professional approval for the project jurisdiction.

Why does the stiffness solver report a singular matrix?

The model may contain insufficient restraints, a disconnected node, a zero-length member, duplicate geometry, or a web layout that forms a mechanism. Check supports and add triangulation. Custom trusses need a continuous stable load path.

What does a negative member force mean?

Negative axial force means compression in this calculator. Positive force means tension. Wind uplift can reverse a member’s force. Review both maximum tension and maximum compression when selecting members and connections.

Should roof loads use horizontal or sloped area?

That depends on how the governing load is defined. Some loads reference horizontal projected area. Others reference actual roof surface. Select the matching projection and verify the load standard. Do not convert a load twice.

How are concentrated loads entered?

Enter one line per load using node number, horizontal force, vertical force, category, and description. Downward vertical loads are negative. Rightward horizontal loads are positive. Place loads at real panel points whenever possible.

Does the calculator design metal connector plates?

No. The connection table uses a single entered capacity for screening. It does not calculate tooth withdrawal, plate orientation, net section, splitting, fastener groups, gusset buckling, edge distance, or manufacturing tolerances.

Does the calculator include second-order effects?

The implemented solver is first-order linear elastic. Selecting the second-order option adds a review warning. Slender structures, large movements, support flexibility, and instability-sensitive trusses require a suitable geometric nonlinear analysis.

Can different members use different sections?

The standalone version applies one common section to the stiffness and capacity model. The results identify critical members and groups. A production design should assign and iterate group-specific chord, web, splice, and reinforcement sections.

Why is the calculated connection demand simplified?

The value is based on a portion of the sum of incident member-force magnitudes. It helps rank joints but is not a rigorous joint equilibrium or connector resistance model. Use connector-specific design procedures for final work.

How should uplift reactions be used?

Treat uplift as a required continuous hold-down load path. Check the truss-to-wall connector, wall plate, studs, sheathing, anchors, foundation, and every splice. Apply the correct connection design factors and load combinations.

Can the tool model attic storage or a habitable room?

It can apply bottom-chord area loads and create an attic-style preset. Habitable attic trusses also require floor vibration, concentrated loads, opening details, fire requirements, stair geometry, serviceability, and specialized connection checks.

How is member self-weight included?

The calculator multiplies each member’s length, common area, and material density. Half of each member’s weight is applied downward at each end node. Clear the self-weight option to exclude it from dead load.

Assumptions and exclusions

Read these limitations before relying on any result.

  • Analysis is two-dimensional and linear elastic.
  • Members are treated as axial bars with idealized pin joints.
  • One common material and section is assigned to all members.
  • Support flexibility, wall movement, and foundation movement are excluded.
  • Member bending is represented only by an optional screening allowance.
  • Local buckling, holes, notches, net sections, splices, and reinforcement are excluded.
  • Connector plates, bolts, nails, screws, welds, and gussets are not fully designed.
  • Permanent and temporary bracing forces are not calculated.
  • Diaphragm action and three-dimensional load sharing are excluded.
  • Dynamic, fatigue, impact, vibration, seismic detailing, and fire design are excluded.
  • Snow drift, unbalanced snow, ponding feedback, and wind zoning require separate models.
  • Code selections are report labels and do not activate complete jurisdiction-specific equations.
  • Imperial mode is a workflow label; primary calculation input fields remain SI in this standalone file.
  • Automatic sizing and optimization selections create review notes rather than a complete discrete-section search.

Related Calculators

Average Calculator StatisticsGeometric Mean CalculatorInter Quartile Range CalculatorLower Quartile CalculatorMaximum CalculatorMean Calculator StatisticsMedian Calculator StatisticsMidhinge Calculator StatisticsMid Range Calculator StatisticsMode Calculator Statistics

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.