Skip to content
Design free

Free calculator

Metal roofing calculator

This metal roofing calculator counts the panels, trim and screws for a gable or lean-to roof and prices each line. A 30x40 barn at 4/12 needs 28 panels, each cut 17' 1" long, plus 5 ridge caps and 5 bags of screws, about $2,189.73 in steel before tax and delivery. Change the size, pitch or overhangs and the list follows.

Metal roofing calculator

Enter the building and the roof. Panels are cut to length from the real slope, and the trim, closures and screws are counted the way the barn designer counts them.

For a lean-to, width is how far the roof runs out from the wall. Gambrel roofs are not covered here: the barn designer prices gambrel roofs.

Slope length
16' 10.375" per slope, panels cut 17' 1" long
Roof area
1,417 sq ft
Roof panel, 17' 1" long
28 panels478.3 linear ft at $2.99 per foot. Summertown Metals price list, Summertown, Tennessee store, Oct 13, 2026
$1,430.22
Ridge cap, 10 ft
5 piecesLowe's, Atlanta-Edgewood store, Oct 8, 2026
$174.90
Eave trim, 10 ft
10 piecesBest Buy Metals online store, Knoxville, Tennessee, Oct 13, 2026
$130.00
Rake (gable) trim, 10 ft
8 piecesBest Buy Metals online store, Knoxville, Tennessee, Oct 13, 2026
$208.00
Inside foam closure strips, 3 ft
28 pieces7 x 4-pack. Best Buy Metals online store, Knoxville, Tennessee, Oct 13, 2026
$41.93
Outside foam closure strips, 3 ft
28 pieces7 x 4-pack. Best Buy Metals online store, Knoxville, Tennessee, Oct 13, 2026
$41.93
Steel roofing screws, #9 x 1-1/2 in, with washers, box of 250
5 boxesSummertown Metals price list, Summertown, Tennessee store, Oct 13, 2026
$90.75
Stitch screws for laps and trim, box of 250
2 boxesBest Buy Metals online store, Knoxville, Tennessee, Oct 13, 2026
$72.00
Total
8 of 8 lines priced, before tax and delivery
$2,189.73

Draw the whole barn in the designerPrice the whole barn

How the Metal Roofing Calculator Works

The calculator uses the same steel rules as our barn designer, so the roof list here matches the roof part of a full plan. It needs six numbers: roof type, width, length, pitch and the two overhangs. Purlin spacing is the seventh, and it only changes the screws.

Panel length from pitch

The slope is longer than half the width of the building. Take the run from the ridge to the outer edge of the eave, overhang included, and multiply it by the square root of 1 plus the pitch over 12, squared. At 4/12 that factor is 1.054, so every foot of run becomes 1.054 ft of panel; at 6/12 it is 1.118. The calculator rounds the cut length up to the next inch and adds 2 in, the allowance the designer uses. Metal Sales lists its Classic Rib panel up to 45 ft and says the panels cannot be end-lapped, so the calculator warns you when a slope runs past that.

Panel count from 36 in coverage

Rib panels are ordered by length and cover 36 in of roof each, not their full width, because each one laps over the rib of the last. Panels per slope is the roof length plus the rake overhang at both ends, divided by 36 in and rounded up. A gable has two slopes, a lean-to has one.

Example: 30x40 at 4/12

The run is 15 ft plus the 12 in overhang, 16 ft, so each slope is 16' 10.375" and each panel is cut 17' 1". The roof runs 40 ft plus 12 in of rake at each end, 42 ft, which takes 14 panels per slope and 28 in all, about 1,417 sq ft of roof. The trim comes to 5 ridge caps, 10 eave trim pieces and 8 rake trim pieces, all 10 ft, and 28 inside closure strips, with the same number of outside strips under the ridge cap.

Metal Roof Cost

Each line in the calculator is priced from a store listing we read, with the store and the date on the line. A line with no read price says not priced yet and stays out of the total. Nothing is averaged or guessed.

Panels per linear foot

Panels are the biggest line. Summertown Metals (Summertown, Tennessee store) lists its 29-gauge, 36 in coverage Tuff Rib panel at $2.99 per linear foot, cut to length, read on Oct 13, 2026. For the example roof that is 478.3 linear ft at $2.99 per foot, or $1,430.22. Color, gauge and freight move the price, so use it to check a quote, not to replace one.

Trim and screws

Ridge cap, eave and rake trim, closure strips and screws are priced the same way, each from the store that listed it, in the pack sizes it sells: the ridge cap at $34.98 a piece, the roofing screws at $18.15 a bag of 250 ($90.75 for the example). Together they add $759.51 to the example roof. Every line in the example has a read price today.

What the total leaves out

The total is the roof steel only, before tax and delivery. It leaves out the purlins that carry the panels, any underlayment or condensation control, and the labor to put it on. We have no named source for an installed price per square foot, so the calculator does not show one. For the whole building, use the pole barn cost calculator.

Screws per Square Foot

Western States Metal Roofing plans about 80 screws per 100 sq ft for 36 in panels with screw lines 24 in apart, and the designer uses the same figure: 0.8 per sq ft. The calculator adds 10% for drops and misses and sells them in bags of 250, so the example roof takes 5 bags. Metal Sales asks for #10-14 wood screws that reach at least 1/2 in past the inside of the purlin, which a 1-1/2 in screw does on a 2x purlin.

The count follows the purlins, because there is a screw line on each one. At 19.2 in the same roof takes a quarter more screws, at 16 in half as many again. The panel maker sets the widest spacing: Union Corrugating rates its MasterRib panel for roof purlins 2 ft apart at most, so the calculator stops at 24 in. Purlin size and spacing depend on the truss spacing and the snow, so work them out in the purlin spacing calculator first and bring the spacing back here. The truss spacing guide covers the layer underneath.

Stitch screws are counted one every 12 in along every side lap, the spacing Metal Sales prints for its panels: about 442 for the example roof, or 2 bags of 250. Check your panel maker's fastener drawing before you order.

Minimum Pitch for Metal Roofing

The residential code sets 3/12 as the least slope for lapped metal panels without lap sealant (section R905.10.2, as the Florida Building Commission quotes it), and Metal Sales and Union Corrugating print the same minimum for their rib panels. Enter less and the calculator stops with that rule instead of a list. Standing seam is a different system with its own rules and is outside this calculator.

Metal Roofing for Sheds, Carports and Lean-tos

The same math covers any roof with one or two slopes. Choose lean-to and the calculator uses one slope, drops the ridge cap and adds the flashing where the roof meets the building wall; width is how far the lean-to runs out from that wall. For a plan to build from, see carport plans, pole barn lean-to plans and small pole barn plans. If you are framing the whole building, how to build a pole barn shows where the roof goes in the order of work.

The builder's plan from the barn designer carries this list for the barn you draw, with every wall panel cut to length too, for $79 once.

Questions people ask

Work out the slope length, then the panel count. The slope is the run from the ridge to the edge of the eave, overhang included, times the square root of 1 plus the pitch over 12, squared. The panel count is the roof length plus both rake overhangs, divided by the 36 in a rib panel covers, rounded up, for each slope. A 30x40 barn at 4/12 with 12 in overhangs takes 28 panels cut 17' 1" long, about 1,417 sq ft of roof.

Multiply the run by the pitch factor. For a 30 ft wide barn at 4/12 with a 12 in overhang the run is 16 ft (192 in), the factor is 1.054 and the slope is 16' 10.375". The calculator cuts each panel 17' 1": the slope rounded up to the next inch with 2 in added, the same allowance the barn designer uses. Rib panels come up to 45 ft long and are not end-lapped, so a longer slope needs a word with your supplier.

28 at 4/12 with 12 in overhangs: 14 on each slope. The roof runs 40 ft plus 12 in of rake overhang at each end, 42 ft, and each panel covers 36 in of it, so 14 panels cover one slope. A steeper pitch makes the panels longer, not more of them.

About 19 for a panel 8 ft long and 29 for one 12 ft long, on purlins 24 in apart. That comes from about 80 screws per 100 sq ft of roof, the planning figure Western States Metal Roofing gives for 36 in panels with screw lines 24 in apart. The calculator adds 10% and sells them in bags of 250.

For the steel on a 30x40 barn at 4/12: $2,189.73 for panels, trim, closures and screws at the prices we read, before tax and delivery. The panels are $1,430.22 of that, at $2.99 per linear foot. Purlins, underlayment and labor are not in it, and we have no named source for an installed price, so we do not give one.

3/12 for lapped exposed-fastener panels without lap sealant, the minimum in section R905.10.2 of the residential code (read in the Florida Building Code edition). With lap sealant the code allows 1/2 in 12, and standing seam goes lower, but this calculator and the barn designer stay at 3/12 or steeper.

Sources

The roof rules on this page come from these sources, each read on the date shown. Prices come from the store listings named on each line of the calculator.

  1. Florida Building CommissionBinding Interpretation 231, Florida Building Code, Residential R905.10.2 (Feb 23, 2022)Read
  2. Metal SalesClassic Rib Condensed Technical Reference (Jan 2026)Read
  3. Union CorrugatingMasterRib panel data sheet (Rev. 03/21)Read
  4. Western States Metal Roofing, builder's guideHow Many Screws Do I Need for Metal Roofing?Read

The builder's plan

The whole steel list, cut by wall.

Draw your barn in the designer and the plan lists every roof and wall panel cut to length, the trim, the closures and the screws, with the post layout, the framing and the truss order sheet. $79 once. If our plan has an error, we fix it or refund you.

Design my barn, free
Designing
Free
Builder's plan
$79 once
Account
Not needed
Inside a new pole barn under a steel roof: trusses, purlins and girts, a workbench, the overhead door open on a fieldIllustration