Rafters are sloped beams that support the weight and shape the framework of the roof, whereas joists are horizontal beams that are parallel to the ground. Joists provide support for floors and ceilings. Joists also support the rafters and tie them together and keep them from spreading under the weight of the roof.