Choosing a nail is not just a matter of finding one that fits the hammer. The nail’s length, thickness, head, shank and material all affect how well it holds, whether it damages the workpiece and how long it lasts outdoors. This guide explains which nails suit common DIY jobs, how to read size labels, and what to check before you fasten wood, masonry or roofing materials.
Match the nail to the job
For ordinary framing and rough construction, a common nail is a dependable starting point: its relatively thick shank holds well, and its broad head is easy to drive. Box nails have thinner shanks, making them less likely to split thinner boards, but they generally offer less holding power. For trim, cabinets and other visible work, finishing nails and brads have smaller heads that are easier to conceal.
The material being fastened matters as much as the nail itself. A nail should pass through the first piece and enter the supporting piece far enough to hold securely. A useful rule of thumb for many wood-to-wood connections is to aim for about two-thirds of the nail’s length to enter the supporting piece. That is a starting point, not a substitute for a project plan: thin stock, end-grain fastening and structural connections may call for a different fastener or a specified nail size.
Think through the task before opening a box: Is the connection structural or decorative? Will it be exposed to moisture? Does the nail need to stay hidden, or must it hold materials that may move? Those answers narrow the choice quickly. For a shelf or a porch repair, for example, a nail chosen mainly because it is on hand may be a poor fit if the joint needs screw-like resistance to pulling apart or must withstand weather.
Choose a nail by head and shank
A nail’s head affects both how it looks and how it behaves under the hammer. A broad flat head is easy to hit and helps keep the nail from pulling through sheet material. A small finishing head is less visible, while a headless or nearly headless brad can disappear into fine trim. In roofing, a broad head helps secure shingles or roofing felt without the head slipping through the material.
The shank—the nail’s main shaft—affects grip and driving. A smooth shank is straightforward to drive and suits many general tasks. Ring-shank nails have ridges that resist withdrawal, which can help with materials such as subflooring or siding. Spiral-shank nails twist as they are driven and can also resist backing out. Their added grip makes them harder to remove, so avoid them where you expect to dismantle the work.
Choose based on the consequences of failure and the material’s thickness. For a decorative picture-frame back, a small brad may be appropriate; for a floor panel that could squeak or loosen, a nail specified for that flooring system is a better bet. Do not assume that a grippier shank automatically makes a connection suitable for structural use. Follow the project’s plans or the fastener guidance for the materials being installed.
Pick a length and thickness that suit the material
Nail sizes can be confusing because the traditional “penny” designation—written as d, as in 8d—does not directly tell you the nail’s diameter. In general, a higher penny size means a longer nail, but exact dimensions can vary with nail type and manufacturer. Check the package for actual length and diameter rather than relying on the label alone.
Length is a balance: too short, and the nail may not hold; too long, and it can emerge from the far side or hit something behind the work. Thickness matters too. A heavy nail can split a narrow board, particularly near an edge, while an overly thin nail may bend during driving or fail to provide enough grip. As a practical example, attaching a thin trim strip to a wall calls for a different nail from joining two framing members, even if both are made of wood.
If a nail keeps splitting the workpiece, try a thinner nail or move the fastening point farther from the edge. For delicate or hard wood, predrilling a small pilot hole can reduce splitting, though it adds a step and should be sized so the nail still grips. When the connection must carry a load, use the specified fastener size and placement rather than improvising from a general rule.
Use specialty nails for trim, roofing and flooring
Specialty nails solve particular problems, but they are not interchangeable with general-purpose nails. Finish nails have small heads and are commonly used for trim, molding and cabinetry where a less-visible fastening point matters. Brad nails are finer still and suit light trim or small craft pieces; they may not provide enough holding power for heavier or load-bearing work. Casing nails have a larger head than finish nails and are often used where trim needs a firmer hold.
Roofing nails have a wide head and are designed for roofing materials. Use the nail length and material specified for the shingle or roofing system, and place them according to its installation instructions. A general-purpose nail can be too short, too exposed to corrosion or poorly shaped for the job. Flooring nails are also purpose-made: some have barbed or angled shanks, and flooring nailers drive them at a set angle through the tongue of the board. Using a standard nail instead may leave the fastener visible or interfere with how boards fit.
For drywall, use drywall screws rather than assuming a nail is equivalent; drywall nails are available for certain applications, but fastening requirements depend on the assembly. For masonry, use masonry nails only where the substrate and application are suitable. Concrete and brick can be brittle, and a nail may bend, fail to penetrate or chip the material. If the instructions call for masonry screws, anchors or a powder-actuated fastening system, use the specified method instead of forcing a nail into the surface.
Select a coating for moisture and treated lumber
The right nail can still fail early if its metal or coating is wrong for the environment. Bright, uncoated steel nails are typically intended for dry indoor use. Galvanized nails have a zinc coating that helps resist corrosion, but coatings differ in how they are applied and how much protection they provide. Stainless steel offers strong corrosion resistance and is often considered for persistently damp or coastal settings, though the appropriate grade and fastener type depend on the exposure and project.
For pressure-treated lumber, check the lumber manufacturer’s guidance and the fastener packaging for compatibility. Some treatments can accelerate corrosion of unsuitable metals, so a generic indoor nail is not automatically appropriate for a deck or other outdoor project. Hot-dip galvanized and stainless-steel fasteners are common options for treated wood, but the right choice depends on the treatment, exposure and hardware involved. If you are fastening treated lumber to metal connectors, make sure the nails are approved for those connectors as well.
Corrosion can stain wood, weaken a connection or both. A nail driven through a weather-exposed board may need a more protective finish than one hidden inside a dry wall. Match the nail’s stated use to the actual conditions, including rain, soil contact, salt air and chemicals from treated wood. If the package does not clearly identify the intended exposure, ask the supplier or check the project instructions before buying.
Decide when a nail is the wrong fastener
Nails are efficient for many wood connections because they are quick to drive and can tolerate some movement. But they are not the best choice for every joint. Screws are often easier to remove and can be useful when you need to draw two pieces together or expect later disassembly. Bolts, structural screws, anchors or connectors may be appropriate when a design specifically requires them.
Consider a loose stair tread or a heavy shelf bracket. A general nail may hold temporarily but can work loose under repeated movement or weight. For structural repairs, overhead work, decks, guardrails and other safety-sensitive assemblies, follow the approved plan and specified fastener rather than choosing by appearance or convenience. If you cannot tell what the connection is required to support, consult a qualified professional.
Also consider what lies behind the surface. A nail that is too long can protrude, damage wiring or plumbing, or mark a finished face. Before fastening into a wall, locate studs and check for hidden services where relevant. For an exposed finish, test the nail on scrap material first; this lets you see whether it splits the wood, leaves an acceptable hole and can be set below the surface without damaging the surrounding area.
Frequently Asked Questions
Can I use a nail gun instead of a hammer?
Often, but only when the nail gun, nail type and project are compatible. Nail guns take specific collation styles, lengths and gauges, and the tool’s instructions explain which fasteners it accepts. Adjust the depth on scrap first so the nail sits correctly. For structural work, verify that the gun and nails meet the project’s requirements; a similar-looking nail is not necessarily an approved substitute.
Why does a nail bend when I hammer it?
The nail may be too thin or long for the material, the material may be unusually hard, or the hammer may be striking off-center. Try a more suitable nail, keep the hammer face aligned with the nail head and use controlled strikes. If the wood is prone to splitting, a pilot hole can help. Discard bent nails rather than trying to straighten and reuse them.
Should I set finishing nails below the wood surface?
Usually, the goal is to leave the head just below the surface so it can be filled, without crushing or denting the surrounding wood. A nail set—a small punch made for this purpose—gives more control than repeated hammer blows. Practice on an offcut first, especially with soft wood or painted trim, where an oversized dent can remain visible after filling.
How should I store leftover nails?
Keep nails dry and in their labeled packaging or a clearly marked container. This helps prevent corrosion and makes it easier to distinguish sizes, coatings and specialty types later. Do not mix nails that look similar but have different coatings or intended uses; a small label can prevent an indoor nail from accidentally ending up in an outdoor repair.
A quick check before you buy
Before heading to the hardware store, write down what you are fastening, the thickness of each layer, whether the result will be visible and whether it will encounter moisture. Measure the material and look for any project instructions naming a fastener type, size or coating. If the connection is structural or safety-sensitive, treat those specifications as essential.
At the store, compare the package’s actual dimensions and intended use, not just the penny label or general description. Buy a small quantity when you are testing a finish on scrap, then confirm the nail drives cleanly and holds as expected before completing the project. That short test can save you from splitting boards, visible nail heads or a fastener that is unsuited to the conditions.