This invoice calculator finds the total of an invoice from a subtotal, a discount, a tax rate and shipping. It also subtracts any deposit already paid. You get the discount amount, the taxable amount, the tax, the total and the balance due.
The formula
discount = percent: subtotal x rate, or a fixed amount
(never below 0, never above the subtotal)
taxable = subtotal - discount
tax = taxable x tax rate
total = taxable + tax + shipping
balance = total - amount paid
Shipping is added after tax and is not taxed.
Worked example
Inputs: subtotal $2,000, discount 10%, tax rate 20%, shipping $50, deposit paid $500.
- Discount amount: $200.00
- Taxable amount: $1,800.00
- Tax: $360.00
- Total: $2,210.00
- Balance due: $1,710.00
How to read the result
The balance due is the number your client pays now. The total is the number that belongs in your records and tax reports.
- Check the order of the steps. Tax on the discounted amount is lower than tax on the full subtotal.
- Do not mix a percentage discount with a fixed one. Choose one type.
- If you charge tax on shipping, add the shipping to the subtotal.
- Tax rules and rates differ by country and by product. Confirm them with a tax authority or an accountant.
Rounding can change the total by a cent when you have many line items. Round each line item, then add them.
Related tools
- Create the document: Invoice generator and Quote generator
- Read more: What to include on an invoice and Invoice deposits
- Other calculators: Invoice discount calculator and Sales tax calculator
Frequently asked questions
- How do I calculate an invoice total?
- Subtract any discount from the subtotal, add tax on the discounted amount, then add shipping. The result is the invoice total. Subtract any deposit already paid to get the balance due.
- Is tax calculated before or after the discount?
- This calculator applies tax after the discount, on the reduced amount. Some regions tax the full price instead. Check the rule for your country with your tax authority or accountant.
- Is shipping taxed on this invoice calculator?
- No. Shipping is added after tax, so it carries no tax here. Some places tax delivery charges. If that applies to you, add the shipping to the subtotal instead.
- What is the difference between total and balance due?
- The total is the full amount of the invoice. The balance due is the total minus payments already received, such as a deposit. Show both on the invoice when a deposit exists.
- Can a fixed discount be larger than the subtotal?
- No. The calculator limits the discount to the subtotal, so the taxable amount never goes below zero.