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.

Updated July 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
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.

Freelancer billing a design project with a loyalty discount
Subtotal $3,200, 15% discount, 8.5% tax, no late fee
The 15% discount reduces the subtotal by $480, leaving $2,720 taxable. Tax adds $231.20, giving a final invoice total of $2,951.20. This is what you put on the invoice — the client pays this amount and you can confirm the math matches your accounting software.
Overdue invoice with a flat late fee and no tax
Subtotal $750, no discount, 0% tax (tax-exempt client), $50 flat late fee
Because the client is tax-exempt, the taxable amount equals the subtotal. The late fee is added after tax, giving a total of $800.00. Sending a revised invoice with the late fee clearly broken out protects you if the client disputes the charge.
Small business owner reconciling a vendor bill
Subtotal $12,400, $400 flat discount (negotiated), 6% tax, no late fee
After the $400 discount, $12,000 is taxable. Tax at 6% adds $720, bringing the bill to $12,720. Cross-checking this against the vendor invoice takes under 30 seconds and catches errors before you approve payment.
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?

Is tax calculated before or after the discount on an invoice?
Tax is calculated on the discounted subtotal, not the original amount. If your subtotal is $1,000 and you apply a 10% discount, tax is assessed on $900. This matches standard practice in most countries and the approach used by this calculator.
How do I calculate a late fee on an invoice without overcharging?
A flat late fee is added after tax — it is not taxable in most jurisdictions. Many businesses charge between 1.5% and 2% per month of the overdue balance as a flat amount, or use a fixed fee like $25 or $50. Check your local commercial law, as some regions cap late fee amounts.
What is the correct order of operations for discount, tax, and late fee on an invoice?
The standard order is: start with the subtotal, apply any discount, calculate tax on the discounted amount, then add a flat late fee at the end. This tool follows that exact sequence. Applying tax before the discount would overcharge the client and is generally incorrect.

Need something this doesn't cover?

Suggest a tool — we'll build it →