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.

FreeNo sign-upRuns in your browserReviewed 2026-10-07

Your worksheet

Line items

Discount, shipping and tax

Document discount
Shipping or handling
Tax rateThe rate that applies to you. Leave blank for no tax.
Add a quantity and unit price to see the invoice total.

Saved on this device

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

Line amount = Quantity × Unit price × (1 − Line discount %)
Subtotal = Σ Line amounts
Taxable amount = Subtotal − Document discount (+ Shipping, if taxed)
Tax added on top = Taxable amount × Rate
Tax inside an inclusive price = Taxable amount × Rate ÷ (1 + Rate)
Total = Subtotal − Document discount + Shipping (+ Tax, if added on top)
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.

  1. 01Line amounts: $850.00 − 10% = $765.00; $120.00; 3 × $14.99 = $44.97
  2. 02Subtotal = $765.00 + $120.00 + $44.97 = $929.97
  3. 03Document discount = 5% × $929.97 = $46.4985, rounded to $46.50
  4. 04Taxable amount = $929.97 − $46.50 + $15.00 shipping = $898.47
  5. 05Tax on the invoice total = $898.47 × 8.25% = $74.123775, rounded to $74.12; total = $972.59
  6. 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?
It depends on your tax authority and accounting software. Some allow either if you are consistent; some prescribe one. Check your authority's guidance, then pick that method here. The calculator shows both so you can see whether it matters for your invoice.
What is the difference between tax-inclusive and tax-exclusive prices?
Tax-exclusive prices have tax added on top at checkout. Tax-inclusive prices already contain it, so the customer pays the price shown and the tax is extracted from that amount.
Does a discount reduce the tax?
Usually yes: tax is charged on the discounted amount. This calculator applies line discounts and the document discount before tax. If your situation differs, such as a payment-time discount that does not change the taxable price, confirm the rule for your tax.
Why is my total a cent different from my accounting software?
Almost always rounding: per-line versus on-total, or rounding each line price versus rounding at the end. Match the method, and check the software rounds each line to the currency's smallest unit as this calculator does.
Is shipping taxable?
It depends on the jurisdiction and what is being shipped. The calculator lets you tax shipping at the same rate or leave it untaxed. It does not decide which is correct for you.

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