Invoice Calculator
What should your invoice total be after tax, discounts, and late fees?
Enter your line items, tax rate, discount, and any late fee to get a complete invoice total with a full breakdown. Useful whether you are sending your first freelance invoice or running a quick sanity check on a client bill.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Most people think sending an invoice is just writing down the hours and hitting send. The total is where it gets complicated. A 10% discount sounds simple — but does it come off before or after tax? Does the late fee get taxed? These sequencing questions change the final number, and getting them wrong means either undercharging or sending an invoice a client can legitimately dispute.
This calculator follows the standard billing sequence: subtract the discount from the subtotal first, then apply tax to the reduced amount, then add any late fee on top. The discount reduces your taxable base, which is both correct and in most cases favorable to the client. The late fee sits outside the tax calculation because it is a penalty charge, not a service rendered.
The taxable amount is the number that matters most for your records. It is what your accountant uses to reconcile your VAT or sales tax liability. Breaking it out clearly — rather than showing only the final total — also makes disputes easier to resolve. A client who questions a charge can follow the math line by line instead of just seeing a number they do not recognize.
When To Use This
Right tool, right situation
Use this calculator any time you need to confirm the bottom line before sending a bill. It is particularly useful when you are applying a first-time client discount, handling an overdue invoice with a late fee, or working in a jurisdiction with a specific sales tax rate you do not use every day.
It is also useful as a sanity check against invoicing software. Tools like QuickBooks or FreshBooks do this math automatically, but their defaults are not always configured the way you expect. Running the numbers here confirms whether your software is discounting before or after tax.
Do not use this calculator as a substitute for accounting software when dealing with complex invoices involving multiple tax rates, partial payments, or currency conversion. If your invoice involves goods taxed at different rates (standard vs. reduced VAT) or partial deposits already collected, you need a purpose-built invoicing tool that tracks line items individually.
Common Mistakes
Why results sometimes look wrong
The most common mistake is applying tax to the original subtotal before the discount comes off. This overcharges the client by the tax rate applied to the discount amount — on a $500 discount at 10% tax, that is a $50 error. Always discount first, then tax.
A second frequent error is treating a percentage late fee as taxable. Late fees are penalty charges and are generally not subject to sales tax or VAT. Adding tax to a late fee inflates the invoice incorrectly and can trigger disputes or non-payment.
The third mistake is entering the tax rate as a decimal instead of a percentage. If your sales tax is 8.5%, enter 8.5 — not 0.085. Entering 0.085 produces a tax amount of less than $1 on a $1,000 invoice, which looks wrong immediately but is easy to overlook when you are in a rush.
The Math
Worked examples and deeper derivation
The calculation runs in four steps. First, compute the discount: if percentage, discount amount equals subtotal times discount rate divided by 100. If flat, discount amount is the entered value directly.
Second, compute the taxable amount: taxable equals subtotal minus discount amount, floored at zero so a large discount cannot produce a negative base.
Third, compute the tax amount: tax equals taxable amount times tax rate divided by 100. This is then added back to the taxable amount to get the post-tax subtotal.
Fourth, add the late fee as a flat addition to the post-tax total. The final invoice total is therefore: (subtotal minus discount) plus ((subtotal minus discount) times tax rate) plus late fee. For a $2,400 subtotal with a 10% discount and 8.5% tax: discounted base is $2,160, tax is $183.60, total is $2,343.60. No late fee applies unless entered.
Expert Unlock
The thing most explanations skip
One thing this calculator assumes is that the entire subtotal is taxed at a single rate. In practice, many invoices mix taxable and non-taxable line items — labor might be exempt while materials are taxable, or digital services may have a different VAT treatment than physical goods. If your invoice has mixed taxability, calculate the taxable and non-taxable portions separately and enter only the taxable portion as the subtotal, then add the non-taxable amount back manually before sending. The formula also treats the discount as applying proportionally across the whole subtotal — if you intend the discount to apply only to specific line items, the effective discount percentage entering this tool needs to reflect that adjustment.
How is tax calculated when there is also a discount on the invoice?
Need something this doesn't cover?
Suggest a tool — we'll build it →