A well-built, well-maintained CNC machine can run productively for 15–20 years or more, and many stay in service far longer as secondary or backup machines. Lifespan depends on build quality, how hard it was run, spindle hours, maintenance history and whether the control is still supportable — mechanical wear and control obsolescence, not age alone, end most machines.
This is exactly why maintenance and hours matter to value. See spindle hours and what affects used machine value, and check any machine at The Machine Blue Book.
Get a real number from a Machine Blue Book specialist — free, no obligation.