How this is calculated
Fixed-rate loans use the same amortization formula as a mortgage:
M = P × [ i (1 + i)ⁿ ] / [ (1 + i)ⁿ − 1 ] — P is the amount borrowed, i the monthly rate (APR ÷ 12), n the number of payments.
Every payment is the same size, but its makeup shifts: interest is charged on the remaining balance, so early payments are interest-heavy and the last ones are nearly all principal.
Reading the total
The stacked bar shows the loan the way lenders rarely present it: the amount you borrowed next to the interest you'll hand over. On a long term, interest can rival the principal — shortening the term or paying extra principal (see the debt payoff tool) are the two levers that shrink it.
Notes
This assumes a simple amortizing loan with no fees, no compounding tricks, and payments made on time. Origination fees and precomputed-interest loans will differ — check the loan agreement's APR and total-of-payments disclosure.