Type the dormer's width and front wall height in inches, its roof pitch and the main roof's pitch, an optional window, and whether to frame the hole in the main roof. For a gable dormer you get the ridge, common rafters, valley rafters and jacks, front, cheek and gable studs, plates and the window header; for a shed dormer (add "shape": "shed", with a flatter pitch than the main roof) the rafters, ledger and cheek walls. It also lists roof and wall areas and the opening: its depth, area and how many main rafters it cuts. It runs in your browser and sends nothing anywhere.
Geometry. The dormer eave is level at the front wall height. The cheek walls stand on the main roof, so each cheek stud is the eave height less the main roof's rise at that distance, and the wall ends where the two planes meet. The ridge is level at half the width times the dormer pitch above the eave.
Gable dormer. Common rafters stand while the eave is clear of the main roof; past that each station is a jack to the valley, whose plan run shrinks in proportion. Valleys run from the eave corner to the end of the ridge in true length.
Opening in the main roof. Two doubled headers the dormer's width long and two doubled trimmers frame the hole, and the page counts the main rafters it interrupts at their spacing. Overhangs, flashing and sheathing waste are not counted.
Questions
How many rafters, studs and valley jacks does a 6 ft wide gable dormer need?
A 6 ft wide gable dormer on an 8 in 12 main roof, with an 8 in 12 dormer roof, a front wall 84 in from bottom plate to eave, a 3 ft by 3 ft window on a 30 in sill and a framed opening in the main roof, comes to a 162 in 2x8 ridge, 16 common rafters of 43.25 in, two 56.31 in valley rafters, four valley jacks, 4 front studs, 7 pairs of cheek studs and 4 gable studs, on 16 in centres. The dormer roof is 86.5 sq ft, its walls 121.5 sq ft to sheathe, and the opening in the main roof is 126 in deep in plan (63 sq ft) and cuts 4 main rafters.
What changes if the dormer roof is 6 in 12 instead of 8 in 12?
The rise falls from 24 to 18 in, the ridge from 162 to 153 in, the commons from 43.25 to 40.25 in and the valleys from 56.31 to 48.44 in, and the roof area from 86.5 to 78 sq ft. The cheek walls and the opening do not change, because they depend on the main roof. Rafter sizes, the header and trimmer loads, flashing and snow load are not checked here: they are your engineer's.