Roof Framing Calculators
Pitch turns a run into a rafter length, and a span into a truss order. Stick framing and trusses are priced from the same roof here.
There are 2 calculators here: Rafter Length & Cut Calculator (rafter length, plumb cut angle and lumber cost) and Roof Truss Count & Cost Calculator (truss count, bracing and delivered cost for a roof).
They all work the same way: quantity first, then a waste allowance you can change, then a price built from verified figures and adjusted for your state. Cost is always a range rather than a single number, and every assumption behind it is printed on the page with its source and the date it was last checked.