Insert replacement or full-frame replacement
An insert — also called a pocket or retrofit replacement — removes the old sash and hardware and fits a new complete window inside the existing frame, which stays in the wall. The exterior trim, siding, and interior casing are left undisturbed. It is faster, cleaner, and less expensive, and it is the right choice when the existing frame and the sill beneath it are structurally sound and dry. The cost is glass area: the new frame sits inside the old one, so the visible glass shrinks by an inch or more per side.
A full-frame replacement takes everything out down to the rough opening — frame, sill, and all — and installs a new window with a nailing flange that gets integrated into the wall’s water barrier. It is required, not optional, when the existing frame is rotted or corroded, when the sill or the framing below shows water damage, when the original installation was never flashed correctly, when the opening is being resized, or when the existing frame is out of square enough that an insert would never seal. It is the only version that lets the installer actually flash the opening, which is why it is the honest answer on a house with a history of leaks at the windows.
