Calculate the monthly payment on any loan from amount, rate, and term.
The monthly payment on a loan is set so the loan is fully paid off in equal payments over the term. The formula is M = P × r / (1 − (1 + r)−n), where P is the amount borrowed, r is the monthly interest rate (annual rate divided by 12), and n is the number of monthly payments.
Every payment covers the interest charged that month first, and whatever is left reduces the balance. That is why early payments are mostly interest and later payments are mostly principal, and why a lower rate or a shorter term saves so much total interest.