The PMT function calculates loan payments based on interest rate, number of periods, and loan amount. For example, =PMT(rate, nper, pv) calculates the payment.