How to build wooden rafters for a shed the length depends on the pitch of the roof. rafters sit perpendicular to the long side of the shed, so they must be long enough to cover the width. measure the width of the shed between the outside of the exterior walls and divide that measurement by 2. next, consult the rafter formula chart.. Make sure all truss are the same or else you will not have an even roof. 2