Calculate monthly payments, total paid, and total interest on any loan.
A loan payment is calculated from three numbers: how much you borrow, the annual interest rate, and how many years you take to repay it. Each monthly payment covers that month's interest first, and the rest reduces the balance. The formula is M = P × r / (1 − (1 + r)−n), where P is the loan amount, r is the monthly interest rate, and n is the number of payments.
Because interest is charged on the remaining balance, you pay the most interest early in the loan and the most principal late in the loan. A shorter term raises the monthly payment but cuts the total interest sharply: a $200,000 loan at 6% costs about $232,000 in interest over 30 years, but only about $116,000 over 15 years.