The validity of a mortgage agreement depends on the terms specified in the agreement, which typically spans 15 to 30 years. It can vary based on the loan and property type.