Quick answer
Roofing nails are short nails with a wide, flat head that hold shingles to the roof deck. For asphalt shingles, the 2021 IRC requires corrosion-resistant nails with at least a 12-gauge shank and a 3/8-inch head.
The nails must reach at least 3/4 inch into the deck, or go fully through thinner decks 1. Where each nail goes matters as much as the nail itself.
Quick facts
- Code section
- 2021 IRC R905.2.5 (fasteners), R905.2.6 (attachment) 1
- Metal
- Galvanized steel, stainless steel, aluminum or copper 1
- Shank and head
- At least 12-gauge (0.105 in) shank, 3/8 in head 1
- Standard
- ASTM F1667 1
- Depth
- 3/4 in into the deck, or through it if thinner 1
- Code minimum count
- 4 per strip shingle, 2 per individual shingle 1
Key takeaways
- Roofing nails have a wide head and a short shank. The wide head grips the shingle so wind cannot pull it over the nail.
- For asphalt shingles, the 2021 IRC asks for corrosion-resistant nails, 12-gauge shank or heavier, 3/8-inch head, to ASTM F1667 (R905.2.5).
- Nails must go 3/4 inch into the deck, or all the way through a thinner deck. Seeing nail tips in the attic is normal.
- The code minimum is four nails per strip shingle, but the maker's instructions can ask for more. IKO's Cambridge sheet calls for six in high wind areas.
- Nails placed above the nail line, called high-nailing, can void a shingle warranty. Ask how the crew checks nail placement.
What roofing nails are
A roofing nail looks like a short, stubby nail with an oversized head. That big head is the point.
A shingle is thin, and in a strong wind it tries to lift and slide over whatever holds it.
A wide head spreads the grip over more of the shingle, so the shingle is less likely to tear free.
The building code is specific about them. For asphalt shingles, it says the fasteners must be roofing nails made of galvanized steel, stainless steel, aluminum or copper 1.
The shank, the long part of the nail, must be at least 12-gauge, which is 0.105 inch thick. The head must be at least 3/8 inch across.
The nails must also comply with ASTM F1667, a standard for driven fasteners that the code names 1.
Roof fasteners is the wider term. It covers nails, screws, staples and plates used across all kinds of roofing. Metal panel roofs often use gasketed screws, and some wood shingle roofs may use staples.
On most homes with asphalt shingles, though, the fastener is a roofing nail. That is why this page covers roof fasteners as a group but puts nails first.
How nails hold a shingle down
A shingle is held two ways. The nails hold it to the deck. A strip of factory-applied sealant, warmed by the sun, glues each course to the one below. The nails do the work until the sealant sets, and they keep doing it if the seal ever lets go.
Each nail has to grab two things. It must pass through the shingle layers and bite into the deck.
The code says nails must be long enough to go through the roofing and at least 3/4 inch into the sheathing.
If the sheathing is thinner than 3/4 inch, the nails must go all the way through it 1.
Most decks are 7/16 or 1/2 inch, so on most homes the tips should poke through into the attic. Our roof sheathing guide explains deck thickness.
Shingle makers add their own detail. IKO's instructions for its Cambridge shingle ask for 11 or 12-gauge corrosion-resistant roofing nails with at least 3/8-inch heads, at least 1 inch long. They say nails must go at least 1/8 inch through decks thinner than 3/4 inch 2.
How the nail is driven matters too. The Owens Corning instructions say nails should be driven straight and flush, so the whole head sits on the shingle without cutting it.
They warn that a badly set nail gun can leave raised nails, which can cause sealing failure, raised tabs, leaks or blow-off 4. IKO's sheet shows the same thing in pictures: perfectly nailed, underdriven, overdriven and crooked 2.
Types of roof fasteners
Different roofs use different fasteners. The code sets rules for each kind 1.
| Fastener | Used for | Code note |
|---|---|---|
| Galvanized steel roofing nail | Asphalt shingles on most homes | Allowed for asphalt shingles (R905.2.5) |
| Stainless steel roofing nail | Asphalt shingles, coastal areas, wood shingles | Allowed; required types for wood near salt water (R905.7.5) |
| Aluminum or copper roofing nail | Asphalt shingles; copper often with copper flashing | Allowed for asphalt shingles (R905.2.5) |
| Box nail, stainless or hot-dipped | Wood shingles and shakes | Required type for untreated wood shingles and shakes 1 |
| Stainless steel staple | Wood shingles and shakes only | Two 16-gauge Type 304 or 316 staples allowed as an option 1 |
| Gasketed screw | Exposed-fastener metal panels | Set by the panel maker; see metal roofing |
Coil nails are roofing nails joined by wire into a coil for a nail gun. Hand nails come loose in a box. Both are fine if the nail itself meets the rules above.
Can staples be used on shingles?
Not on asphalt shingles under the 2021 IRC. The fastener rule for asphalt shingles lists roofing nails of four metals and says nothing about staples 1. A new asphalt roof built to the 2021 IRC uses nails.
Wood is different. For untreated wood shingles and wood shakes, the code says the fasteners are box nails, and it allows two 16-gauge stainless steel staples as an option, with a crown of 7/16 to 3/4 inch 1.
The crown is the flat top of the staple. Near the ocean the code asks for stainless steel. If your quote names staples on an asphalt roof, ask why, and ask the roofer to show the code or maker rule they are following.
Four nails or six
The code sets a floor, then hands the details to the shingle maker.
Section R905.2.6 says shingles must have the number of fasteners the maker's approved instructions call for, but never fewer than four per strip shingle or two per individual shingle 1.
On very steep roofs, over 21 in 12, the code says to follow the maker's instructions 1.
Makers often ask for more in tough spots. IKO's Cambridge instructions show four nails for a standard application and six for steep slopes and high wind areas.
They say to use six nails per shingle in high wind areas or on slopes of 21:12 or more, and to seal each shingle down with three spots of roofing cement 2.
This matters for the warranty, not just the code. IKO says that to be covered under its High Wind Resistance Limited Warranty, starter strips must be used at all eaves and rakes, the extra nails must be used as specified, and the shingles must be able to seal or be sealed by hand 2.
Other makers have their own rules. Ask your roofer which pattern they will use and which warranty it supports.
- If Any asphalt shingle roof
- Then At least the maker's count, and never fewer than 4 per strip shingle or 2 per individual shingle (2021 IRC R905.2.6) 1
- If Slope over 21 in 12
- Then The code defers to the maker's steep-slope instructions 1
- If IKO Cambridge in a high wind area or at 21:12 and up
- Then Six nails per shingle plus three spots of roofing cement, per IKO's sheet 2
- If You want a maker's high-wind warranty
- Then Follow that warranty's list exactly, such as IKO's starter strips at all eaves and rakes plus the extra nails 2
Code edition shown is the 2021 IRC; your jurisdiction may have adopted a different edition or local amendments. Source: [1] [2]
Worked example: checking the nails on a quote
Say your house has a 7/16-inch OSB deck, you live in a windy area, and the quote names IKO Cambridge shingles. Here is how the rules line up 1 2.
| Step | What you check | Result |
|---|---|---|
| 1 | Nail metal | Galvanized steel, stainless, aluminum or copper meets R905.2.5 |
| 2 | Shank and head | 12-gauge shank or heavier with at least a 3/8-inch head |
| 3 | Deck thickness | 7/16 inch is under 3/4 inch, so nails must go fully through |
| 4 | Length | IKO asks for at least 1 inch, and at least 1/8 inch through a thin deck |
| 5 | Count | High wind area, so IKO's sheet calls for six nails per shingle |
| 6 | Placement | On IKO's nail line, never above it |
Put those six points in writing with the quote. If the roofer says four nails, ask whether that still meets the maker's rules for your wind area and the warranty you were promised.
Where nails go on a shingle
Every shingle has a nailing zone, a band set by the maker where the nails must go.
On many shingles it sits just below the sealant strip, so the next course covers the nail heads.
IKO marks a nail line and says it is critical to use it as a guide for all applications 2.
Nails also must miss the joints. IKO says no nail should be within 2 inches of a joint or cutout in the shingle below 2. A nail in a joint can let water reach the deck.
The ridge and hips use a different pattern. Hip and ridge shingles are nailed near each side, and the nails at the end of the ridge are left exposed and covered with roof cement.
Owens Corning's 2024 ProEdge sheet puts one nail on each side, 1 inch from the side edge and 7 1/4 inches from the exposed end, and warns not to nail through the sealant strip 4.
IKO's UltraHP uses two nails, one each side, 3/4 inch back from the notch 3. Our asphalt shingles guide shows how the field shingles fit together.
What good nailing does
- Keeps shingles on in wind before the sealant strip sets
- Holds the shingle flat so the sealant can bond to the course below
- Keeps nail heads covered by the next course, away from rain and sun
- Meets the code minimum and the maker's count, so the roof passes inspection 1
- Supports the wind warranty when the maker's high-wind pattern is used 2
- Resists rust when the right metal is used, so the nail keeps its grip for the life of the roof
Limitations
- Nails are only as strong as the deck. Rotted or thin decking cannot hold them well.
- Every nail is a hole. One in the wrong place can leak.
- A nail gun set too hard cuts the shingle; set too soft, it leaves a raised head 4.
- The code minimum may not match the warranty. The maker's count can be higher 1.
- Nail placement is hidden once the next course is on, so mistakes are hard to spot later.
What drives the cost of nailing
We do not list prices. Nails are a small part of a roof bill, but the choices around them can move it. For a full estimate, try our roof cost calculator.
- Nail count. Six nails per shingle means more nails and a bit more labor than four.
- Metal. Stainless or copper nails cost more than galvanized steel.
- Hand sealing. High-wind patterns may add roof cement under each shingle, which takes time 2.
- Roof size. Nails scale with area, measured in roofing squares.
- Deck repair. If the deck cannot hold nails, bad sheets must be replaced first.
- Coastal rules. Local rules near salt water may call for stainless fasteners on some roofs 1.
How nailing fits into the job
A licensed roofer does this work. These are the steps you can expect and check, not a how-to.
- The old roof comes off and the deck is checked and repaired.
- Underlayment and starter strips go on. IKO's high-wind warranty needs starter strips at all eaves and rakes 2.
- The crew sets nail guns for depth and checks a few test nails for flush heads.
- Each course is nailed on the maker's nail line with the count the maker asks for.
- Hips and ridges go on last, with their own nailing pattern from the cap maker 4.
- A supervisor or inspector checks nailing before the next course hides it, where local rules call for it.
Nails over the life of the roof
You do not service roof nails. You watch for signs that they have moved. A nail that backs out lifts the shingle above it and leaves a bump. Rain can then follow the nail into the deck. A deck that swells and shrinks with moisture is one possible cause.
From the attic, the nail tips poking through the deck should look dry. In cold weather, frost on the nail tips is a sign of damp attic air, and the drips when it melts can stain the deck. Better attic airflow helps. Our roof ventilation guide explains the code rules.
Exposed nail heads, such as at the last ridge cap, are covered with roof cement when the roof is built 4. Over time that cement can dry and crack. A roofer can check it during a routine visit. Do not climb on the roof yourself to look.
Nailing mistakes and their risks
- High-nailing. Nails above the nail line miss the layer they should hold. IKO says high-nailing above the nail line can void its limited warranty 2.
- Overdriven nails. Heads cut into the shingle, which weakens the hold 4.
- Underdriven nails. Raised heads stop the shingle from sealing and can wear through the course above 4.
- Crooked nails. Part of the head lifts and the grip is uneven 2.
- Too few nails. Below the code or maker count, shingles can blow off 1.
- Short nails. Nails that do not reach 3/4 inch into the deck, or through a thin one, can pull out 1.
Many of these only show after a storm. If shingles blow off a fairly new roof, ask the roofer to check nail placement on the pieces that came loose. See storm damage and insurance for what to do next.
What the code requires
These rules come from the 2021 International Residential Code, as adopted in Maryland and read at UpCodes. Your state or city may use a different edition or change parts of it.
| Rule | What the code says |
|---|---|
| Metal (R905.2.5) | Galvanized steel, stainless steel, aluminum or copper roofing nails 1 |
| Shank (R905.2.5) | At least 12-gauge, 0.105 inch 1 |
| Head (R905.2.5) | At least 3/8 inch across 1 |
| Standard (R905.2.5) | ASTM F1667 1 |
| Depth (R905.2.5) | Through the roofing and at least 3/4 inch into the sheathing; through the sheathing if it is thinner 1 |
| Count (R905.2.6) | Maker's number, but at least 4 per strip shingle or 2 per individual shingle 1 |
| Steep roofs (R905.2.6) | Over 21:12, follow the maker's instructions 1 |
| Wind class (R905.2.4.1) | Shingles tested to ASTM D7158 and labeled for the design wind speed 1 |
| Wood shingles (R905.7.5) | Box nails, stainless or hot-dipped galvanized; two stainless staples allowed 1 |
| Wood shakes (R905.8.6) | Box nails, stainless or hot-dipped; two stainless staples allowed 1 |
Sources: [1]
Nails and wind ratings
A shingle's wind class is a lab result for the shingle when it is put on as the maker says.
The code asks shingles to be tested to ASTM D7158 and labeled for the design wind speed where you live 1.
NRCA explains that D7158 sorts sealed shingles into Class D, G and H, for basic wind speeds of 115, 150 and 190 mph 5.
That rating assumes the shingles were nailed the way the maker tested them. Put the nails in the wrong place, or use too few, and the roof on your house is no longer the roof that was tested.
That is a HyreRoof reading of how the tests work, not a maker's promise. It is also why makers tie wind warranties to nail count, starter strips and sealing 2.
Roofing nails vs other fasteners
| Roofing nail | Staple | Roofing screw | |
|---|---|---|---|
| Looks like | Short shank, wide flat head | U-shaped wire with a flat crown | Threaded shank with a rubber washer |
| Used on | Asphalt shingles, many accessories | Wood shingles and shakes only, under 2021 IRC 1 | Exposed-fastener metal panels |
| Asphalt shingles allowed | Yes 1 | Not listed in R905.2.5 1 | No |
| Main risk | Placement and depth | Cutting through the shingle | Washer wears out over time |
| Rule source | IRC R905.2.5 and maker | IRC R905.7.5, R905.8.6 | Panel maker |
Common misconceptions
- Myth Nail tips in the attic mean the nails are too long.
- Reality On decks thinner than 3/4 inch, the code wants nails to go all the way through 1. Seeing tips is normal.
- Myth Four nails is always enough.
- Reality Four is the code floor for strip shingles. The maker can ask for more, and IKO calls for six in high wind areas 2.
- Myth Any nail will do if it holds.
- Reality The code sets the metal, shank, head and standard for asphalt shingle nails 1.
- Myth Staples are fine on asphalt shingles.
- Reality The 2021 IRC lists only roofing nails for asphalt shingles. Staples are allowed for wood shingles and shakes 1.
- Myth Higher nails hold better.
- Reality Nails above the nail line miss the right layers, and IKO says high-nailing can void its warranty 2.
Local rules and climate
Each state or city adopts its own code edition and can add to it. Your building department decides which rules apply, and some areas inspect nailing during the job. Wind is the biggest local factor.
The required shingle wind class depends on the design wind speed for your area 1, and makers often ask for more nails in high wind areas 2. The code's map of design wind speeds and any local high-wind rules are the place to start.
Salt air is the second factor. The code asks for stainless steel fasteners on wood shingles and shakes installed within 15 miles of salt water 1. Even on asphalt roofs, many coastal roofers choose heavier corrosion protection. Ask your roofer or building department what applies at your address.
What to ask your roofer
- What nail will you use: metal, gauge, head size and length?
- How many nails per shingle, and does that match the maker's rule for our wind area?
- Which warranty does your nailing pattern support, and what does the maker require for it?
- How do you check that nails are on the nail line and driven flush?
- Will the nails go through our deck, and is the deck sound enough to hold them?
- Are you using nails or staples, and which rule allows that?
Keep going
- Roof replacementNailing is set at install
- Choosing a rooferCompare how crews install
- How a roofing project worksWhat happens day by day
- Roofing cost guideWhat moves the price of a new roof
Questions about roofing nails
What size roofing nails do I need for shingles?
For asphalt shingles, the 2021 IRC asks for roofing nails with at least a 12-gauge shank and a 3/8-inch head. They must be long enough to go 3/4 inch into the deck, or fully through a thinner deck. Makers add their own rules. IKO, for example, asks for nails at least 1 inch long.
How many nails go in each shingle?
At least four per strip shingle, or two per individual shingle, under IRC R905.2.6. The shingle maker can ask for more, and the code says to follow the maker's number. IKO's Cambridge instructions call for six nails in high wind areas or on slopes of 21:12 or steeper.
What is high-nailing?
High-nailing means driving shingle nails above the nail line the maker marks. The nails can miss the layer of shingle they are meant to hold, so the shingle is easier to blow off. IKO says high-nailing above the nail line can void its limited warranty. Ask your roofer how they check nail placement.
Can you use staples on a shingle roof?
Not on asphalt shingles under the 2021 IRC. Its fastener rule for asphalt shingles lists only roofing nails. The code does allow two 16-gauge stainless steel staples per wood shingle or shake as an option. If a quote names staples on an asphalt roof, ask the roofer which rule they are following.
Why do roofing nails poke through into the attic?
Because the code wants them to on thin decks. IRC R905.2.5 says nails must go 3/4 inch into the sheathing, and all the way through if the deck is thinner than that. Most decks are 7/16 or 1/2 inch, so nail tips in the attic are normal and a sign the nails are long enough.
Galvanized or stainless roofing nails?
Both are allowed for asphalt shingles. The code lists galvanized steel, stainless steel, aluminum and copper. Stainless resists rust better and costs more. Near salt water, the code asks for stainless fasteners on wood shingles and shakes, and many roofers pick stainless for coastal homes in general.
Does nailing affect the shingle warranty?
Yes. Makers tie their warranties to their own install rules. IKO says its High Wind Resistance Limited Warranty needs starter strips at eaves and rakes, the extra nails it specifies and shingles that seal. It also says high-nailing can void its limited warranty. Check the maker's sheet for your shingle.
What does ASTM F1667 mean on a nail box?
ASTM F1667 is the fastener standard that the 2021 IRC names for asphalt shingle nails, and the code requires those nails to comply with it. Owens Corning also recommends nails that meet it. Seeing it on the box is a quick sign the nails were made to a known spec.
What causes nail pops on a roof?
Nail pops happen when a nail backs out and lifts the shingle above it. Possible causes include a deck that moves as moisture changes, nails that were not driven flush, and nails too short to reach the depth the code asks for. A roofer can reseat or replace them and look for the cause.
Are coil nails as good as hand nails?
Yes, if the nails meet the same rules. Coil nails are roofing nails joined in a wire coil for a nail gun. The code does not care how they are driven, only the metal, shank, head and depth. The risk with guns is depth. Owens Corning warns a badly set gun can leave raised nails.
Sources
- International Code Council, 2021 International Residential Code §R905.2.4.1, §R905.2.5, §R905.2.6, §R905.7.5, §R905.8.6 (Maryland adoption, read at UpCodes), retrieved .
- IKO, Cambridge Shingles Application Instructions (English, rev. 01/21), retrieved .
- IKO, UltraHP Hip and Ridge Application Instructions (English, rev. 01/24), retrieved .
- Owens Corning, ProEdge Hip & Ridge Shingles Installation Instructions (September 2024), retrieved .
- Mark S. Graham, "Understanding asphalt shingle standards," Professional Roofing (NRCA), February 2021, retrieved .
Expert review
Written by the HyreRoof editorial team. Not yet reviewed by an outside expert. We say so rather than imply a review that has not happened; see our editorial policy.
How the numbers were checked: Code text read in the 2021 IRC as adopted in Maryland; nailing patterns and warranty conditions read in IKO and Owens Corning installation PDFs and labelled as theirs; D7158 classes from NRCA as recorded in the site's verified facts file.
Suggest a correction. We fix errors and say what changed.