Skip to content

Margin Calculator

Profit margin and markup, or the margin a stock or forex trade needs.

$
$

Gross margin

37.5%

Cost
$50.00
Revenue
$80.00
Gross profit
$30.00
Gross margin
37.5%
Markup
60%

How it was calculated

  1. Margin = profit / revenue = $30.00 / $80.00 = 37.5%
  2. Markup = profit / cost = $30.00 / $50.00 = 60%

Calculations run on this device and your inputs are not uploaded. A share link puts your inputs in the URL, so anyone with the link can read them.

More Financial Calculators

All calculators

How the margin calculator works

Gross margin is profit as a share of the selling price: (price - cost) / price. Markup is profit as a share of cost: (price - cost) / cost. A $50 item sold for $80 has a 37.5% margin and a 60% markup. To hit a target margin, price = cost / (1 - margin).

Buying stock on margin means borrowing part of the price from your broker. With a 50% initial requirement you put up half. If the price falls far enough that your equity drops below the maintenance margin, the broker issues a margin call.

In forex, margin is the deposit a broker holds to open a leveraged position: trade size × exchange rate × margin ratio.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

This is an educational estimate, not a lender quote, tax filing calculation or investment recommendation. Actual costs depend on current rules, fees and your circumstances. Verify important decisions with official sources and a qualified adviser.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions

Both use the same profit, but margin divides it by the price and markup divides it by the cost. Margin is always the smaller percentage.

It varies by industry: grocery stores often run 1% to 3% net margins, while software companies can exceed 20%. Gross margins are much higher than net margins.

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.