Repair vs. replace: the roof decision

The repair vs. replace roof decision comes down to how much of the problem is local and how much life the rest of the roof has left. A straight answer takes an inspection, but the questions below tell you which conversation you're likely to have.
When repair makes sense
The failure is local and the roof around it is sound. A cracked pipe boot, a flashing joint that opened up, a strip of shingles that left in one windstorm, a skylight curb that was never sealed right. On a roof with most of its run still ahead, fixing the failed part is the honest fix, and a roofer who says so is worth keeping.
When replacement makes sense
The wear is everywhere. Granules filling the gutters, shingles curling or cracking across whole slopes, leaks that show up in different rooms in different storms, or a roof carrying its second layer of shingles over a tired deck. Patching a roof that's failing across the field buys months, not years, and the patches themselves stop holding because the surrounding material won't take a fastener or a seal.
The middle ground
Plenty of roofs sit between the two, and that's where the quote conversation matters. A repair that buys three or four more years can be the right spend if you're selling soon or saving for the material you actually want. What you want from the roofer is the honest version of both numbers: what the repair costs and what it buys, what the replacement costs and what it ends.
What a straight quote separates
Whether the leak is one failure or a symptom, how much decking will come up in the tear-off, how many layers are up there now, and how much of the flashing and vent work survives a repair versus needs redoing either way. If the quote doesn't separate repair scope from replacement scope, ask for both.