A single leak around a pipe boot or a few shingles blown off in a storm is usually a repair. If the rest of the roof is in good shape, fixing the problem area is the right call and costs a fraction of a replacement.
Age changes the math. Architectural shingles typically last somewhere in the range of 20 to 30 years depending on ventilation, sun exposure, and storms. When a roof is near the end of that range and showing curling, cracking, or bald spots where granules are gone, repairs start chasing problems instead of solving them.
What's underneath matters as much as what you can see. Soft or sagging decking, repeated leaks in different spots, or daylight visible in the attic all point to a roof that's failing as a system, not in one spot.
The honest answer comes from an inspection. A good roofer should show you photos of what they found and explain why they're recommending a repair or a replacement, and be comfortable telling you when a repair is all you need.
