How to calculate profit margin
Add product cost and other per-unit costs to obtain C. With selling price P, unit profit is P − C. Margin is (P − C) ÷ P × 100: the share of revenue left after the costs you entered.
Margin and markup use different bases
Percentage markup divides profit by cost: (P − C) ÷ C × 100. The multiplier is P ÷ C. A BRL 50 cost and BRL 100 sale produce BRL 50 profit, 50% margin, 100% markup and a multiplier of 2. Adding 30% to cost does not give a 30% margin.
Selling price from a target margin
For target g as a percentage, use P = C ÷ (1 − g ÷ 100). A BRL 70 total cost and a 30% target give a BRL 100 price. The calculated price is the smallest whole-cent amount meeting the target in this model. Compare it with market prices and review all costs before pricing.
Which costs does the result include?
You decide which unit costs to include. Allocate fixed expenses consistently and enter applicable taxes, commissions and shipping as BRL amounts. A fee based on price changes when the price changes: recalculate its BRL amount and run the scenario again. The result does not guarantee sales or profitability.
Formulas and reference
Reference accessed October 21, 2026 for margin on sales and its distinction from markup. Adding the entered costs and the rounding policy are choices made by this tool.
Related tools
Frequently asked questions
How do margin and markup differ?
Margin compares profit with sales. Markup compares profit with cost. The same profit therefore usually gives different percentages.
Does this show net profit?
It subtracts only the costs entered. Accounting net profit requires all relevant expenses and taxes with appropriate allocation.
Can I calculate a loss-making sale?
Yes. A selling price below total entered cost gives negative profit, margin and markup, with a visible warning. Cost and price must be greater than zero.
Why is a 100% target not allowed?
With positive cost, a 100% margin would divide by zero in the pricing formula. Target mode accepts 0–99.99%, within the tool’s price limit.