HomeFinance › Car Loan Calculator

Car Loan Calculator

Computes the amount financed for a vehicle purchase from price, sales tax, fees, down payment and trade-in, then the level monthly payment, total interest and total cost of the car over the loan.

When to use

You are buying a car with an installment loan and want the monthly payment or the full cost including sales tax, dealer fees and a trade-in credit.

Do not use when: You are leasing rather than buying (use car-lease), or you only have a loan amount and rate (use loan-payment).

Formula

taxable = vehicle_price − trade_in_value (or vehicle_price if trade_in_reduces_tax = false); sales_tax = taxable × sales_tax_percent/100; amount_financed = vehicle_price + sales_tax + fees − down_payment − trade_in_value; i = annual_rate_percent/1200; monthly_payment = amount_financed × i / (1 − (1 + i)^−term_months); total_cost = vehicle_price + sales_tax + fees + total_interest

Inputs

ParameterTypeUnitRequiredDescription
vehicle_pricenumberyesNegotiated purchase price before tax and fees. Range: > 0, ≤ 100000000
down_paymentnumberdefault 0Cash paid at signing. Range: ≥ 0, ≤ 100000000
trade_in_valuenumberdefault 0Credit for the vehicle traded in (net of any loan still owed on it). Range: ≥ 0, ≤ 100000000
sales_tax_percentnumber%default 0Sales tax rate applied to the taxable price. Range: ≥ 0, ≤ 30
annual_rate_percentnumber%yesLoan APR in percent; the monthly rate is this / 12. Range: ≥ 0, ≤ 100
term_monthsintegermonthsdefault 60Loan term in months (36, 48, 60, 72 and 84 are common). Range: ≥ 1, ≤ 120
feesnumberdefault 0Documentation, title and registration fees rolled into the loan. Range: ≥ 0, ≤ 1000000
trade_in_reduces_taxbooleandefault trueMost US states tax vehicle_price − trade_in_value; set false where tax is charged on the full price (e.g. California, Virginia).

Outputs

OutputTypeUnitDescription
sales_taxnumberTaxable price × sales_tax_percent / 100.
amount_financednumbervehicle_price + sales_tax + fees − down_payment − trade_in_value.
monthly_paymentnumberLevel payment from the amortization formula.
total_interestnumbermonthly_payment × term_months − amount_financed.
total_of_paymentsnumbermonthly_payment × term_months.
total_costnumbervehicle_price + sales_tax + fees + total_interest (down payment and trade-in are part of this, not additional).

Example

30,000 car, 5,000 down, 6 % tax, 7 % APR, 60 months: {"vehicle_price":30000,"down_payment":5000,"sales_tax_percent":6,"annual_rate_percent":7,"term_months":60}{"sales_tax":1800,"amount_financed":26800,"monthly_payment":530.67,"total_interest":5040.33,"total_of_payments":31840.33,"total_cost":36840.33}

45,000 car, 10,000 trade-in, 3,000 down, 8.25 % tax, 500 fees, 4.9 % for 72 months: {"vehicle_price":45000,"down_payment":3000,"trade_in_value":10000,"sales_tax_percent":8.25,"annual_rate_percent":4.9,"term_months":72,"fees":500}{"sales_tax":2887.5,"amount_financed":35387.5,"monthly_payment":568.27,"total_interest":5528.18,"total_cost":53915.68}

GET https://tttkmbb.com/api/v1/calculate/car-loan?vehicle_price=30000&down_payment=5000&sales_tax_percent=6&annual_rate_percent=7&term_months=60

Machine access

Sources

FAQ

Is sales tax charged before or after the trade-in?

In most US states the trade-in value is deducted before tax is calculated; a few states (California, Virginia, Michigan above a cap, and others) tax the full price. Set trade_in_reduces_tax accordingly.

Does a longer term save money?

It lowers the monthly payment but raises total interest: 26,800 at 7 % costs 5,040 interest over 60 months but about 6,100 over 72 months.

Related calculators