Now, this depends on the type of loan. With a fixed-rate mortgage, you lock in the interest rate for the loan duration, whether that's 15 or 30 years. For an adjustable mortgage, you can only lock in the rate for a specified period – ranging from one to ten years – depending on the loan terms.