The short answer
Most often, a woodpecker pecking a house is drumming to claim territory or looking for insects in the wood. Less often, it’s starting or checking a nest or roost hole.
Drumming for territory
Drumming is a loud, fast burst of raps used to announce a territory and attract a mate. Woodpeckers choose surfaces that carry sound well, such as metal gutters, downspouts, siding, vents, chimney caps and signs. Both males and females drum, and it’s most common in spring. It can continue into early summer and then taper off.
Searching for insects
If the pecking is repeated in the same spot, especially near trim or siding joints, the bird may be after insects hidden in the wood. Carpenter ants and the larvae of wood-boring beetles can cause that kind of damage. Look for small holes, fine sawdust-like debris or ant trails. If you find them, the insects are a bigger problem than the bird.
Digging a hole
Woodpeckers dig nest and roost holes in soft or decaying wood. Siding and trim can look soft to a bird, and a pair may start a hole there. In spring, a hole in wood siding can point to nesting, so check before you change anything.
Reflections
Pecking at a window is a different behavior, usually aggression toward a bird’s reflection. For that, see why do birds attack their reflection in windows.
Is it harmful?
Usually the damage is cosmetic: small holes, dents or chipped paint. Holes can let water and insects in, though, so repair them. Rot or insect damage can get worse over time if it’s left alone.
Discouraging them
- Cover the spot. Netting or a lightweight barrier over the area can work for some birds. Stretch it tight and check it often, so no bird gets tangled.
- Hang visual deterrents. Reflective tape, mylar strips or moving objects near the spot may discourage a bird. Results vary, and a bird may get used to a deterrent over time.
- Fix the cause. Repair damaged wood and seal gaps. If you suspect insects, a pest control professional can confirm the problem and suggest treatment.
The law
In the United States, most native woodpeckers and their active nests are protected under the Migratory Bird Treaty Act. Harming a bird or disturbing an active nest can be illegal, so check local rules before you act.
When to call a professional
If the damage is extensive, or you suspect carpenter ants, termites or rot, a pest control or wood damage professional can inspect the house. A professional can also tell you whether the damage is still active.