Add or reverse sales tax, and separate profit margin from markup with a single tool. It is built for both shoppers who want the pre-tax price behind a register total and small business owners who need to price products to hit a real margin target.

Sales Tax & Margin Calculator

Reverse sales tax and profit margin/markup calculations.

$
%
Tax Amount$7.62
Pre-Tax Price$92.37

How This Calculator Works

Sales tax is a percentage added to the retail price of taxable goods and services at the point of sale, set by state and local governments in the United States. This calculator handles two related jobs: forward calculation, which adds tax to a pre-tax price to get the total at the register, and reverse calculation, which extracts the original pre-tax price from a final amount that already includes tax. It also computes profit margin and markup, which are frequently confused: margin is profit as a share of the selling price, while markup is profit as a share of the cost. Knowing the difference matters for pricing, because a 25% margin is not the same as a 25% markup.

The Mathematical Formula & Logic

Total = Price × (1 + taxRate). To reverse out the pre-tax price from a tax-inclusive total: Price = Total ÷ (1 + taxRate). Tax collected = Total − Price. Profit margin = (Selling Price − Cost) ÷ Selling Price. Markup = (Selling Price − Cost) ÷ Cost. Rates are entered as decimals (7% = 0.07).

Worked Step-by-Step Example

A $50 item in a jurisdiction with 7% sales tax: Total = $50 × 1.07 = $53.50, and the tax collected is $3.50. Reversing it: if you only know the register total of $53.50, the pre-tax price is $53.50 ÷ 1.07 = $50. For margins: buy for $40, sell for $50 → margin = ($50−$40)/$50 = 20%, while markup = ($50−$40)/$40 = 25% — same dollars, different bases.

Frequently Asked Questions

Forward tax starts from a pre-tax price and adds the tax to reach the register total. Reverse tax starts from a final, tax-inclusive total and backs out the original price and the tax portion using the same rate.

Margin divides profit by the selling price, while markup divides profit by the cost. A 25% margin equals a 33% markup on the same numbers, so mixing them up leads to systematic underpricing.

The seller collects sales tax at the point of sale and remits it to the state tax authority. If you run a business, you are generally responsible for tracking nexus rules and filing returns on schedule.

No. Most states exempt groceries, prescription drugs, and some services, and many have sales-tax holidays. Taxability depends on your state and the product category, so check your local rules for specifics.

Disclaimer: CompelKit tools and calculators are provided for educational and estimation purposes only and do not constitute certified legal, financial, or tax advice.

Calculation History

0 saved · Click on any two to compare side-by-side

No saved calculations yet.

Use "Save Snapshot" on any calculator.

Cookies on CompelKit

We use cookies for site analytics and to serve Google AdSense ads. You can opt out of personalized ads via Google Ads Settings, and read more in our Privacy Policy. Learn how Google uses data.