Money
Invoice Total Calculator
Enter your line items, discounts, shipping and tax rate to get a clear subtotal, tax and total ledger, then turn it into an invoice.
What this calculates
An invoice total is built in a fixed order: line amounts, line discounts, a discount on the whole document, shipping, then tax. Get the order or the rounding wrong and the total on your invoice will not match your accounting software, or your customer's.
This calculator shows the whole ledger and, when you charge tax, both ways of rounding it: tax worked out on each line and added up, or tax worked out once on the invoice total. If they differ you see by how much, so you can pick the method your tax authority or software expects.
The formula
- Unit price
- Price of one unit. It excludes tax unless you choose tax-inclusive prices.
- Line discount %
- A percentage taken off one line before the subtotal.
- Document discount
- A percentage of the subtotal or a fixed amount, applied after the line amounts. It reduces the amount tax is charged on.
- Rate
- The tax rate you enter, as a percentage. No rate is built in.
- Per-line rounding
- Each line's tax is rounded to the currency's smallest unit, then the rounded amounts are added.
- Invoice-total rounding
- Tax is worked out once on the whole taxable amount and rounded once.
Assumptions
- Every amount is rounded to the currency's smallest unit (cents, pence, whole yen) using half-up rounding.
- One tax rate applies to every line. Shipping is taxed at the same rate unless you switch that off.
- A document discount is spread across the lines in proportion to their amounts, so per-line tax adds up to the right figure.
- With tax-inclusive prices the total never changes: only the split between tax and the amount before tax does.
Worked example
Three lines in USD: design work 10 × $85.00 with 10% off, hosting setup 1 × $120.00, and stock images 3 × $14.99. A 5% document discount, $15.00 shipping and an 8.25% tax rate, added on top. The rate is only an example.
- 01Line amounts: $850.00 − 10% = $765.00; $120.00; 3 × $14.99 = $44.97
- 02Subtotal = $765.00 + $120.00 + $44.97 = $929.97
- 03Document discount = 5% × $929.97 = $46.4985, rounded to $46.50
- 04Taxable amount = $929.97 − $46.50 + $15.00 shipping = $898.47
- 05Tax on the invoice total = $898.47 × 8.25% = $74.123775, rounded to $74.12; total = $972.59
- 06Tax per line (after spreading the discount): $59.96 + $9.41 + $3.52 + $1.24 on shipping = $74.13; total = $972.60
The invoice total is $972.59 with tax rounded on the total, or $972.60 with tax rounded per line. The one-cent difference is exactly what the comparison box shows.
How to read the result
Read the ledger top to bottom: it follows the order the amounts are applied, so you can check each step against your own invoice.
A rounding difference of a cent or two is normal. It grows with the number of lines and with rates that don't divide evenly. Neither method is wrong: choose the one your tax authority or accounting software uses and stay consistent across invoices.
Common mistakes
- Applying the document discount after tax. A discount on the invoice normally reduces the amount tax is charged on, so apply it before tax.
- Entering tax-inclusive prices but leaving the setting on 'add tax on top', which charges tax twice.
- Subtracting the tax rate from an inclusive total instead of dividing by 1 + rate. At 20%, tax is one-sixth of the inclusive price, not 20% of it.
- Mixing rounding methods between invoices, which makes totals hard to reconcile.
- Taxing shipping when your rules treat it differently. Switch the shipping setting to match.
Frequently asked questions
Should tax be rounded per line or on the invoice total?
What is the difference between tax-inclusive and tax-exclusive prices?
Does a discount reduce the tax?
Why is my total a cent different from my accounting software?
Is shipping taxable?
This calculates the arithmetic of your invoice using the rate you enter. It is not tax advice: confirm rates, rounding rules and what is taxable with your tax authority or adviser.
Keep going
Related tools
- Invoice GeneratorCreate a professional invoice in your browser and download it as a PDF. Tax, discounts, logo, any currency. Free, no signup.
- Quote GeneratorWrite a priced quote with an expiry date and acceptance line, then convert it to an invoice in one click when the client says yes.
- Tax Percentage CalculatorAdd tax to a price, take tax out of a tax-inclusive price, or find the tax rate from a net and gross amount, using any rate you enter.
- Discount CalculatorFind the price after a percentage off, the amount saved, the original price from a sale price, or the true total of stacked discounts.
- Project Invoice CalculatorSplit a fixed project fee into a deposit and milestone invoices, with expenses, tax and the balance left after each.
- Invoice Due Date CalculatorFind an invoice due date from the issue date and terms such as Net 30, EOM or Net 30 EOM, with an optional weekend roll and 2/10 discount.