> No, in general there is no prepayment penalty. In fact, it is relatively rare for a 30 year mortgage to last the entire 30 years.
I believe the average mortgage duration is ~8 years, which is why the ‘mortgage rate’ tracks the 10 year Treasury rate and not the 30 year Treasury rate.