Home · Math · Percentages · Margin and Sales Tax Calculator
Margin and Sales Tax Calculator
To hit a target margin the price is grossed up from cost first; sales tax is then applied on that selling price, as tax is charged to the buyer on top.
What this calculator does
To hit a target margin the price is grossed up from cost first; sales tax is then applied on that selling price, as tax is charged to the buyer on top. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
To hit a target margin the price is grossed up from cost first; sales tax is then applied on that selling price, as tax is charged to the buyer on top.
Inputs use the units shown in the field labels and every denominator or total must be non-zero. The result is an arithmetic value from the stated formula only; it is not a quote, a rating or professional advice. Percent fields hold the percent number itself (6.5 means 6.5%); expressions divide by 100 wherever a fraction is needed, and percentage results are reported back as percent numbers.
Worked example
With the example inputs this page opens with (cost 80, target margin (%) 25, sales tax rate (%) 8), the result is 106.67 — pre-tax selling price. Change any figure and the result updates with the same formula.
Quick reference
| Cost | Pre-tax selling price |
|---|---|
| 40 | 53.33 |
| 64 | 85.33 |
| 80 | 106.67 |
| 100 | 133.33 |
| 120 | 160.00 |
| 160 | 213.33 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Margin and Sales Tax Calculator work?
To hit a target margin the price is grossed up from cost first; sales tax is then applied on that selling price, as tax is charged to the buyer on top. Cost · Target margin · Sales tax rate → Pre-tax selling price. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Margin and Sales Tax Calculator need?
Cost · Target margin · Sales tax rate → Pre-tax selling price. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Margin and Sales Tax Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.