To calculate the square footage of a roof, start by measuring the length and width of every roof surface, including dormers. Then, multiply the length and width of each rectangular section of roof to find the area. If there are triangular sections of roof, calculate the area by multiplying the length of the triangle's longest side by its height, and divide by two. The last step is to add up the area of all roof planes to get the total square footage of the roof.