A roofing calculator works out how much roofing material you need — in squares (100 sq ft each) and shingle bundles — and corrects for your roof's pitch, which a flat footprint measurement misses. It then lists underlayment, nails and drip edge so you order the whole job at once.
The pitch factor is the part DIYers get wrong: a 6:12 roof has about 12% more surface than its footprint, and a 12:12 roof over 40% more. Get that wrong and you're short a pallet.
Roof area = footprint × slope factor, where slope factor = √(1 + (rise/12)²). Squares = roof area ÷ 100, times the waste multiplier. Shingles come 3 bundles to the square; underlayment ≈ 4 squares per roll; nails ≈ 320 per square for standard 3-tab/architectural shingles.
A 50 × 30 ft footprint at 6:12 pitch is ~1,677 sq ft of roof — about 18.4 squares with 10% waste, or 56 bundles of shingles.