SumReflex Math tools
🛍️

Finance

Margin Calculator

Calculate profit, margin percentage, and markup percentage from cost and selling price.

Preparing Margin Calculator
Please wait ...
Input
Enter the cost and either the sale price or target margin values so the calculator can show the resulting pricing metrics.
Input summary
Your calculator summary shows here.

Profit percentage reading

Calculating profit, margin, and markup from cost and selling price

Margin starts with cost and selling price

The Margin Calculator uses cost and selling price. It subtracts cost from selling price to find profit, then reports both margin and markup percentages.

Cost should include what it really takes to sell

A product cost that ignores shipping, platform fees, packaging, labor, payment processing, returns, and storage can make profit look better than reality.

Selling price is the revenue per unit

Use the actual price charged before or after tax consistently. If sales tax or VAT is passed through to a tax authority, do not treat it as ordinary revenue.

Profit is the simple difference

Profit equals selling price minus cost. A positive number means the sale price is above cost; a negative number means the item is being sold at a loss.

Margin compares profit with selling price

Margin answers what portion of the sale price remains as profit. The formula is profit divided by selling price, multiplied by one hundred.

Markup compares profit with cost

Markup answers how much profit is added on top of cost. The formula is profit divided by cost, multiplied by one hundred.

Margin and markup are not interchangeable

The same sale can have a thirty percent margin and a much higher markup. Confusing the two can create bad pricing decisions.

Discounts should be calculated before margin review

If a sale price comes from a promotion, the Discount Calculator can find the discounted price before margin is checked.

VAT should be separated from profit math

When a price includes value added tax, the VAT Calculator can back out the net amount before margin is reviewed.

Investment return is a different percentage

For beginning and ending investment values over time, the Average Return Calculator is a better fit than margin.

Gross margin is not net margin

Gross margin may only include direct product cost, while net margin includes operating expenses. Label the cost base clearly.

Service businesses need labor cost care

For services, cost may include paid hours, subcontractors, software, travel, insurance, and overhead. Leaving labor out can make pricing unsustainable.

Marketplace sellers should include platform charges

Referral fees, fulfillment charges, payment fees, advertising spend, and returns can reduce profit on every sale. Add them to cost before calculating margin.

Restaurants need food cost and waste context

Menu pricing should consider ingredients, spoilage, prep labor, delivery fees, and discounts. The calculator can handle the arithmetic after the true cost is estimated.

Wholesale and retail targets differ

A manufacturer, distributor, retailer, and reseller may each need a different margin target. Do not copy another business target without context.

A higher margin can lower volume

Raising price may improve margin per unit but reduce sales. The calculator does not forecast customer demand.

A low-margin item can still help a basket

Some products attract customers or support bundles even with lower standalone margins. Pricing decisions can involve more than one product.

Loss leaders should be deliberate

If selling price is below cost, the loss should serve a clear strategy. Accidental negative margin is usually a pricing or cost-tracking problem.

Shipping charged to customers needs clear treatment

If shipping income is part of selling price, shipping expense should be part of cost. If it is passed through separately, keep both sides consistent.

Coupons can change the real selling price

A list price is not the same as the revenue after coupon codes, loyalty rewards, refunds, or negotiated discounts.

Payment timing can affect cash flow

A sale can be profitable but still strain cash if fees, inventory, or payroll are paid before customer money arrives. Margin is not a cash-flow statement.

Inventory shrink reduces true margin

Lost, damaged, expired, or stolen inventory should be considered in cost planning. Unit margin on sold items can overstate business margin when shrink is ignored.

Returns can reverse profit

Return shipping, restocking labor, damaged goods, and refund fees can turn a good-looking sale into a weak one. Include average return cost when relevant.

Break-even planning needs fixed costs too

Margin per sale helps, but rent, salaries, software, and insurance still need enough volume to cover them. This page does not calculate break-even units.

Compare margin before and after price changes

Run the current selling price, then test a proposed price. The change in margin and profit shows how much room the price move creates.

Rounding prices can move percentages

A price ending in .99 may have a slightly different margin than a round price. Small differences matter on high-volume products.

The result should be attached to one unit or one job

Keep cost and selling price on the same basis. Do not compare per-unit cost with order-level selling price unless all quantities are aligned.

Use margin targets as guardrails

A target margin can help reject prices that do not support the business. The calculator shows whether a proposed sale meets that target.

Document the cost build-up

Save product cost, landed cost, fees, labor, selling price, profit, margin, markup, and calculation date so the result can be reviewed later.

The cleanest margin result uses complete cost

The formula is simple, but the input is not always simple. Better cost accounting produces a more useful margin percentage.

Pricing decisions need both math and market sense

A margin can look attractive while the price is too high for customers, or too low to support operations. Use the output as one pricing signal.

The final check is whether profit remains after reality

After fees, discounts, returns, taxes, and labor are handled properly, the remaining profit is the number that matters.