Margin Calculator
Calculate business profit margin and markup, estimate a target selling price, or explore stock and currency-trading margin requirements.
Your estimate
How selling price changes your result
Same cost, fees and quantity; these prices do not predict demand.
| Scenario | Price per unit | Profit per unit | Margin |
|---|
Margin and markup explained
In business, margin measures how much of selling revenue remains after the costs you include. Markup compares that same profit with the cost base. These percentages use different denominators, so a 30% markup is not a 30% margin.
For example, a product costing 60 and selling for 100 generates 40 in profit before additional fees. Its margin is 40 ÷ 100 = 40%, while its markup is 40 ÷ 60 = 66.67%.
Selling fees and target prices
This tool can deduct a fee based on selling price and a fixed fee for each unit. In that case, profit = price × (1 − fee rate) − cost − fixed fee. Target-margin pricing uses price = (cost + fixed fee) ÷ (1 − fee rate − target margin). The fee rate and target margin must together be below 100%.
For target markup, this tool measures profit against cost plus the fixed fee, excluding the percentage fee from the markup base. Price = (cost + fixed fee) × (1 + target markup) ÷ (1 − fee rate). Check which markup definition your business uses.
Is this gross margin or net margin?
That depends on the costs entered. With only product costs it approximates a product margin; it becomes broader when you include additional allocated expenses. It is not automatically an accounting net margin. Enter amounts consistently and exclude sales tax collected for a tax authority from selling revenue.
Why can margin be negative or markup unavailable?
A negative margin means the entered costs and fees exceed revenue. Markup is undefined when its cost base is zero. A zero cost base also cannot determine a positive selling price from a target percentage alone.
What does stock margin mean?
Trading margin is account equity supporting a financed position. This tool estimates purchase equity as position value × initial requirement, then treats the remainder as a constant loan. The modeled maintenance threshold price is loan ÷ [shares × (1 − maintenance percentage)]. Interest, fees, dividends, other holdings and changing broker requirements are excluded.
Is the maintenance threshold a guaranteed liquidation price?
No. It is a simplified equity threshold for one long position. Brokers may use different calculations or liquidate under their own agreements. Borrowing magnifies gains and losses; required margin is not the maximum possible loss.
How is currency-trading margin calculated?
Position value in account currency = base-currency units × account-currency value per base unit. Required margin = position value ÷ leverage ratio. The model does not include tiered margin, spreads, financing charges or currency fluctuations. It does not estimate a margin-call price.
Estimates based on your inputs. No live market data or jurisdiction-specific trading rules are applied.