A noncompete agreement can't last forever. To be enforceable in most states, the agreement must be reasonable in duration. The amount of time considered to be reasonable depends on the state. In general though, noncompete agreements that last longer than two or three years might not be enforced by a court.