The main structural parts of a roof work together to keep water out and support the weight above

A roof is not one thing — it is a system of layers and components, each with a specific job. The decking (or sheathing) is the wooden base that sits on top of the rafters or trusses. The underlayment is a water-resistant barrier that goes down first, before shingles. The shingles are the visible outer layer that sheds water. The flashing is metal trim that directs water away from joints and penetrations. The gutters and downspouts carry water off the roof and away from your foundation. Understanding what each part does helps you know what to inspect, what fails first, and what a contractor is actually replacing when they quote you a job.

Most roof failures are not about the shingles alone — they are about the system breaking down. A shingle can last 20 years, but if the underlayment has rotted or the flashing is rusted, water gets behind the shingles and into the wood. Knowing the names and functions of each part means you can ask a contractor specific questions and understand what they are recommending.

Key Takeaways

  • The decking is the wooden base layer; if it rots, the entire roof structure is compromised and must be replaced, not just the shingles.
  • Underlayment is a water barrier that sits between the decking and shingles; it is your second line of defense if shingles fail or lift.
  • Flashing is metal trim around chimneys, vents, and valleys that directs water into gutters; failed flashing is one of the most common leak sources.
  • Gutters and downspouts move water away from your roof and foundation; clogged gutters can cause water to back up under shingles and into the attic.

Decking and the structural frame

The decking (also called sheathing) is plywood or oriented strand board (OSB) nailed to the rafters or trusses. It is the platform everything else sits on. If you look in your attic, you are looking at the underside of the decking. This layer has to be solid and dry — if it rots or sags, the roof loses its shape and water pools in low spots.

Below the decking are the rafters or trusses. Rafters are individual wooden beams that run from the peak of the roof down to the walls; trusses are pre-made triangular frames that do the same job but are more common in newer homes. These carry all the weight — shingles, snow, ice, wind load. If a rafter cracks or a truss connection fails, the roof can sag or collapse. This is why a sagging roofline is a serious problem, not a cosmetic one.

The ridge board runs along the peak where two roof slopes meet. The soffit is the underside of the overhang at the edge of the roof — the part you see when you look up from outside. The fascia is the trim board that runs along the edge and usually holds the gutters. These three pieces work together to close off the space between the roof and the walls and to support the gutters.

Underlayment and the water barrier

The underlayment is a layer of material — usually synthetic fabric or asphalt-saturated felt — that sits directly on the decking before shingles go down. Its job is to stop water that gets past the shingles. If a shingle tears, if wind lifts shingles, or if ice dams form, water can run down under the shingles. The underlayment catches it and directs it into the gutters instead of into the attic.

Underlayment does not last as long as shingles. Asphalt felt typically lasts 15 to 20 years; synthetic underlayment can last 25 to 30 years or longer. When a roof is replaced, the old underlayment is removed and new underlayment is installed. If you have an older roof and a contractor says the underlayment is failing, that is a sign the whole roof system is near the end of its life, even if the shingles still look acceptable.

Some roofs have ice and water shield in addition to or instead of standard underlayment, especially in cold climates. This is a thicker, stickier material that adheres to the decking and seals around nail holes. It is installed along the eaves and in valleys where ice dams and water backup are most likely to occur.

Shingles and the visible surface

The shingles are what you see from the street. They overlap like fish scales, with each shingle nailed down and sealed to the one below it. Asphalt shingles are the most common; they typically last 20 to 25 years in moderate climates, though this varies by quality, climate, and sun exposure. Wood shakes, metal panels, and tile are other options, each with different lifespans and costs.

Shingles do more than look good — they shed water, reflect some of the sun's heat, and protect the underlayment from UV damage. When shingles curl, crack, or lose granules (the gritty texture), water penetration increases. However, a few damaged shingles do not always mean the whole roof needs replacing. A contractor can patch or replace individual shingles if the underlayment is still good and the rest of the roof has years left.

The starter shingles are a special row installed along the bottom edge of the roof, under the first course of regular shingles. They fill gaps and help seal the edges. The ridge cap shingles run along the peak and seal the joint where two roof slopes meet. Both of these wear faster than field shingles because they are exposed to more wind and weather.

Flashing and water management at joints

Flashing is metal (usually aluminum or galvanized steel) installed at any point where the roof meets a vertical surface or where two roof planes meet. Common flashing locations are around chimneys, plumbing vents, exhaust vents, skylights, and in valleys (the V-shaped seams where two roof slopes come together). Flashing directs water down and into the gutters instead of letting it pool or run sideways into the walls.

Flashing fails in two ways: it rusts or corrodes, or the sealant around it dries out and cracks. When flashing fails, water runs behind it and into the attic or walls. This is one of the most common sources of roof leaks. A leak that appears in your attic near a chimney or vent is almost always a flashing problem, not a shingle problem. Replacing flashing is usually cheaper than replacing shingles, but it requires removing shingles to access the flashing underneath.

The valley flashing is especially important because valleys are where the most water flows. If valley flashing is clogged with debris or if the sealant has failed, water backs up and finds its way under the shingles. Keeping valleys clear of leaves and branches is one of the most effective ways to prevent leaks.

Gutters and downspouts

The gutters are the channels that run along the edge of the roof and catch water as it runs off the shingles. The downspouts are the vertical pipes that carry water from the gutters down to the ground. Together, they move water away from your roof and foundation. Without gutters, water would pour off the roof edge and soak the soil next to your foundation, leading to basement leaks and foundation damage.

Gutters are usually made of aluminum, steel, or vinyl. They need to be cleaned at least twice a year (more often if you have trees nearby) because leaves, twigs, and debris clog them. A clogged gutter causes water to back up under the shingles and into the attic. It also causes water to overflow and pour down the outside of the wall, which can rot siding and damage the foundation.

Downspouts should extend at least 4 to 6 feet away from the foundation. If a downspout empties right next to the house, water pools in the soil and can seep into the basement. Some homes have underground drain pipes that carry water further away; these need to be kept clear so water does not back up.

Ventilation and moisture control

A roof system also needs ventilation to manage moisture and heat. Soffit vents are small openings in the soffit (the underside of the overhang) that allow air to flow into the attic. Ridge vents or gable vents allow air to flow out. This circulation prevents moisture from building up in the attic, which can rot the decking and rafters, and it helps keep the attic cooler in summer.

If soffit vents are blocked by insulation or debris, or if ridge vents are installed incorrectly, ventilation fails. Moisture then accumulates, and the decking can rot even if the shingles are in good condition. This is why a roofer will sometimes recommend adding or improving ventilation as part of a roof replacement — it extends the life of the new roof.

Some roofs also have attic fans or powered ventilation to move air more aggressively, especially in hot climates. These are optional but can help in situations where passive ventilation is not enough.

Penetrations and how to spot problems

Any opening in the roof — a chimney, vent, skylight, or antenna — is called a penetration. Each one requires flashing to keep water out. Penetrations are high-risk areas because water naturally wants to flow around them, and if the flashing is not installed correctly or has failed, leaks follow.

When inspecting your roof, look for signs of trouble at penetrations: rust stains on flashing, gaps between flashing and the roof, cracked or missing sealant, or water stains in the attic near a vent or chimney. These are all signs that flashing needs repair or replacement. Do not wait for a leak to appear in your living space — by then, water has already been in the attic for weeks or months.

Frequently Asked Questions

What is the difference between rafters and trusses?

Rafters are individual wooden beams that run from the peak to the walls; trusses are pre-made triangular frames that do the same job. Trusses are more common in newer homes because they are faster to install and cheaper to manufacture. Both carry the roof's weight, but trusses have internal bracing that distributes the load differently.

How often should I have my roof inspected?

Most experts recommend a professional inspection every 3 to 5 years, or after a major storm. You should also inspect your roof yourself after heavy wind, hail, or ice to look for missing or damaged shingles, debris in valleys, or visible damage to flashing. If you see water stains in your attic, have a roofer locate the source when ready.

Can I replace just the flashing without replacing the whole roof?

Yes. If flashing is failing but your shingles are in good condition, a roofer can remove shingles around the flashing, replace the flashing, and reinstall the shingles. This is usually much cheaper than a full roof replacement. However, if your shingles are also near the end of their life, it often makes sense to replace the whole roof at once.

What does it mean if I see granules in my gutters?

Asphalt shingles shed granules naturally over time as they age. A small amount in the gutters is normal. Large amounts or sudden increases can mean shingles are deteriorating faster than expected, often due to hail damage, excessive heat, or poor quality shingles. If you notice a sudden change, have a roofer inspect the roof.

Why is my roof sagging?

A sagging roofline usually means the decking or structural frame is failing — either from rot, water damage, or structural failure. This is a serious problem that requires when ready professional inspection. Do not ignore it, as a sagging roof can eventually collapse and cause injury or property damage.