VAT / sales tax
Add tax to a net price or back it out of a gross one, and the parts still add up.
VAT / sales tax, worked
Arithmetic only — not tax, accounting, legal or investment advice. Check against current rules.
Where these numbers come from.
Negatives are parenthesized because that’s what a statement does. The rest is four promises.
Minor units, never floats
Amounts are integers in the currency's smallest unit, end to end. A float never touches a cent.
Rounded in the right place
Rounded where an invoice or a ledger would round, never operand by operand, so a split still sums to the whole. A tool that rounds each period says so.
Unit tested
The arithmetic lives in one unit-tested module, and the extension uses the same one.
No network
There is no request to make. What you type stays in this tab and is gone when you close it.
More in money math
- Margin & markupMargin is profit over price; markup is profit over cost. Solve either way.
- FX conversion & gain/lossConvert at your policy rate and measure the FX gain or loss.
- Penny-exact allocationSplit 100.00 three ways and get 33.34 / 33.33 / 33.33, with nothing left in suspense.
- NPV, IRR & XIRRNPV, payback and every IRR a series has, not just the first a solver finds.
- Effective vs nominal rateTurn a nominal rate into the effective annual rate it compounds to.
Read it in context
- Founder guide · 3 minSales tax nexus for startups: when you owe tax in a stateSince Wayfair, selling into a state can create a sales tax obligation. How economic nexus works, why SaaS is taxable in some states and when to register.
- Founder guide · 5 minHow sales tax is calculated: rates, sourcing, roundingHow sales tax is calculated: state plus local rates, origin vs destination sourcing, what’s taxable (SaaS varies) and rounding per line or per invoice.
- Founder guide · 6 minRegistering in a new state: remote hires and nexusA remote hire or nexus in a new state means foreign qualification, payroll tax accounts and maybe a sales tax permit. What to register, in what order.
Learn what it computes
- Compliance · Lesson 7 · 10 minRegistering, collecting and filing sales taxRegister, charge, document, book and remit, worked on Northwind's September: $760 collected, one resale certificate, and the October payment.
- Core · Lesson 6 · 8 minMoney in and money outInvoices become receivables and bills become payables. Each is a list that ties to the books, and the cash settles them later.
- Core · Lesson 2 · 8 minThe entity and its numbersThe EIN is free and issued online in one sitting. The state adds a registered agent, an annual report and registrations wherever you do business.
The same number, elsewhere.
A calculator answers the question once. These carry the answer into a product, name what it computed, and argue the method.
- ComponentInvoiceFormWith the revenue-recognition preview per line.
- ComponentBillFormPer-line coding, required evidence, discount ROI surfaced.
- ComponentCheckoutSummaryItemized total with fees and tax.
- TermInvoiceA claim on a customer
- TermBillA claim against us
- TermSales tax nexusThe connection with a state that obliges a seller to collect its sales tax — physical presence, or economic nexus from sales into the state above a threshold (commonly $100,000) since South Dakota v. Wayfair (2018)
- DocOrder to cash (AR)The receivables stack from quote to revenue: quote → order → fulfillment → invoice → collection → cash application → revenue.
- EntryJournal entry for sales tax collectedWhen a taxable sale is made, debit Cash or Accounts receivable for the total charged, credit Revenue for the price and credit Sales tax payable for the tax. When the return is filed, debit Sales tax payable and credit Cash.
- DocCurrency decimal placesHow many decimals each ISO 4217 code is stored at — JPY 0, USD 2, KWD 3.