Skip to content
RK Calculator
Menu

Margin Calculator

Find profit margin and markup from cost and price, the price for a target margin, and stock and forex margin.

Change the values and press Calculate to work out your own figures.

Profit margin

Enter the cost and price.

About costWhat it costs you.
About price (revenue)What you sell it for.
About currencyChanges how amounts are shown, not the math; your choice is remembered on this device.
Result
Margin
25%
Profit
$40.00
Markup
33.33%

The margin is 25%.

Show the working
  1. margin = profit ÷ price; markup = profit ÷ cost

Price for a margin

Enter the cost and target margin.

About costWhat it costs you.
About margin, %Profit as a share of the price.
About currencyChanges how amounts are shown, not the math; your choice is remembered on this device.
Result
Price
$160.00
Profit
$40.00
Markup
33.33%

Sell at $160.00 for a 25% margin.

Show the working
  1. price = cost ÷ (1 − margin)

Stock trading margin

Enter the share price, shares and margin requirement.

About stock pricePrice per share.
About sharesNumber of shares.
About margin requirement, %For example 50 (Reg T initial).
About currencyChanges how amounts are shown, not the math; your choice is remembered on this device.
Result
Margin required
$549.00
Position
$1,830.00

You need $549.00 of your own money.

Show the working
  1. required = price × shares × requirement

Forex margin

Enter the exchange rate, units and leverage.

About exchange rateUnits of one currency per the other.
About unitsAmount traded.
About leverageThe margin ratio.
About currencyChanges how amounts are shown, not the math; your choice is remembered on this device.
Result
Margin required
$6.50
Position
$130.00

You need $6.50 at 20:1.

Show the working
  1. required = rate × units ÷ leverage

How to use it

Enter the cost and price. Enter the cost and target margin. Enter the share price, shares and margin requirement. Enter the exchange rate, units and leverage.

Enter amounts without commas or with them; rates are percentages (5 for 5%). Negative amounts are allowed where a sign means money paid out.

Key facts

margin = (price − cost) ÷ price; markup = (price − cost) ÷ cost; price for a margin = cost ÷ (1 − margin)

Questions

What is the margin on an item bought at $120 and sold at $160?

25% (a 33.33% markup).

Formulas

margin = (price − cost) ÷ price; markup = (price − cost) ÷ cost; price for a margin = cost ÷ (1 − margin)

Sources

Limitations

  • Results are estimates for planning, not offers or financial advice; lenders and banks may round, count days or time payments differently.
  • Rates are nominal annual rates compounded as you choose; payments at a different frequency use the equivalent periodic rate.

Formula version 0.1.0Reviewed