Generally, noncompete agreements should last as long as is allowed by applicable law. Some states limit noncompete agreements to two years, while others do not have a specific limitation. In states where there is no specific limitation, courts usually consider what is reasonable under the circumstances.