Calcaxis

Margin Calculator

Solve for selling price, cost, margin, markup, and profit with optional discount and sales tax adjustments.

Pricing decisions get messy when you move between margin, markup, discounts, and customer-facing tax. This calculator keeps those numbers connected so you can see the price you need, the profit you keep, and how discounting changes the economics.

What do you want to solve?
Solve For
Target Based On
Core Numbers

$

Target Margin or Markup (%)
20%
30%
40%
50%
Custom

%

Optional Pricing Adjustments
Discounts reduce the price used for margin. Sales tax is shown separately as the customer-facing total.
Include Discount
Show Sales Tax

Validation

Enter cost and your target margin or markup to solve for price.
Related Calculators
Discount Calculator
Calculate sale prices, discount percentages, and s...
Sales Tax Calculator
Calculate sales tax, find tax rates, or determine ...
Food Cost Calculator
Calculate recipe costs and profit margins for rest...

How To Use the Margin Calculator

Why Margin and Markup Get Confused

Margin and markup describe the same price relationship from different angles. Margin measures profit as a share of selling price, while markup measures profit as a share of cost. Because the denominators are different, the percentages are never interchangeable.

This calculator helps with the most common pricing tasks: finding the selling price needed for a target margin, backing into cost from a known price, and seeing how profit changes when discounts and sales tax enter the picture.

How To Use the Margin Calculator

  1. Choose what you want to solve for: selling price, cost, margin, markup, or profit.

  2. Enter the known cost or price values, then choose whether your target percent is a margin or a markup when solving for price or cost.

  3. Turn on discount and tax only when you need them so the calculator can separate margin math from the final customer-facing total.

  4. Review the comparison note to confirm you are reading margin and markup correctly before you use the number in a quote, menu, or price list.

How the Calculation Works

Profit = selling price - cost; margin % = profit / selling price; markup % = profit / cost

When you solve for price from a target margin, the calculator rearranges the margin formula so the required price preserves that margin after any discount is applied. When you solve from markup, the price is cost multiplied by one plus the markup rate.

Sales tax is shown as a separate customer-facing add-on instead of being treated as business revenue. That keeps the profitability math focused on the pre-tax selling price, which is the value the business actually controls.

Useful Pricing Scenarios

Setting a list price with planned discounts

If you expect to run regular promotions, solve for the required list price with discount enabled so the discounted transaction still lands at your target margin.

Checking whether a vendor quote leaves enough room

When your selling price is fixed by the market, solve backward for cost to see the highest purchase cost that still preserves your target margin or markup.

Explaining pricing internally

The side-by-side margin and markup outputs help teams avoid quoting a markup target when finance or management actually expects a margin target.

How To Read the Result

Use gross profit as the amount left after direct cost, not as final business profit. Fixed overhead, labor, payment processing, returns, and taxes on business income still need to be covered separately.

If the discount-adjusted selling price is much lower than the list price, that is a signal that promotions may be doing more damage to profitability than the headline discount suggests.

Pricing Tips

  • Confirm whether your organization manages to margin or markup before setting targets

  • Model discounts at the planning stage instead of treating them as a later exception

  • Keep sales tax separate from margin unless you explicitly absorb tax in the advertised price

  • Recheck cost assumptions when supplier pricing changes

  • Use conservative assumptions when pricing products with volatile input costs

Frequently Asked Questions

4

Margin is profit divided by selling price, while markup is profit divided by cost. A 40% margin does not mean a 40% markup, because the base number is different.

Yes, if you expect the transaction to happen at the discounted price. The true realized margin comes from the price actually collected after the discount, not the original list price.

Not in the core profitability math used here. Sales tax is shown as a customer-facing total, while margin and profit are calculated from the pre-tax selling price.

Yes. Choose the selling-price mode, enter your cost, decide whether the target is a margin or a markup, and optionally include a planned discount if you need the discounted transaction to hit the target.

Explore Related Calculators

Continue with closely related tools to compare results, double-check inputs, or plan the next step in the same workflow.