How to calculate an invoice total step by step
An accurate invoice starts with correct line items.
- Multiply each item's quantity by its unit price, then sum all line amounts to get the subtotal.
- If you offer a discount, apply it to the subtotal — never to individual items after tax.
- Then compute tax on the discounted amount (not the original subtotal).
- Finally, subtract any deposit to arrive at the balance due.
This order — subtotal, discount, tax, deposit — is the standard accounting sequence used by invoicing software worldwide.