Skip to content

Margin Calculator

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

  • 100% Free
  • Instant Results
  • No Sign Up

Margin Calculator

Profit margin and markup, stock margin, forex margin

$
$

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%

More Financial Calculators

View all calculators

Every calculator you need.

Free, fast, and easy to use.

Browse all 204 calculators
Calculators
204+
Free to use
100%
Results as you type
Instant

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