Profit Margin Calculator
Calculate gross profit, gross margin and markup from revenue and cost.
Each substitution is shown so you can check the arithmetic.
Enter values to see the step-by-step working.
Profit Margin formula
The live calculator applies this equation with full precision and rounds only for display.
What the variables mean
Revenue = sales; Cost = cost of goods sold; profit = revenue − cost.
Worked example
$100,000 of revenue against $60,000 of cost gives $40,000 gross profit, a 40% margin and a 66.7% markup.
How to interpret the result
Margin compares profit with revenue, while markup compares profit with cost. The same profit therefore has a lower percentage margin than markup.
Common mistakes
- Rates must match the compounding period. A 6% annual rate compounded monthly is 0.5% per month, not 6% per month. Keep cash-flow signs consistent (outflows negative, inflows positive) and remember that all DCF models are only as good as their assumptions.
Frequently asked questions
What formula does this calculator use?
Are the results rounded?
Is this calculator free to use?
The formula, classification ranges and assumptions on this page follow the definitions and guidance of the bodies below.
- SEC Investor.gov — Investor education and financial calculatorsRegulator guidance on compounding, risk, fees and investor rights.
- FINRA — OptionsHow listed options work, including the risks the options lab describes.
- U.S. Department of the TreasuryOfficial data and background on government securities and interest rates.
- U.S. Energy Information AdministrationEnergy prices and conversion factors used by the fuel-cost calculator.
- Black and Scholes (1973) — The Pricing of Options and Corporate LiabilitiesThe original European option-pricing paper implemented in the Black-Scholes lab.
How these are used: sources and standards.
Reviewed November 2026 · This tool is for education and estimation. See the disclaimer and methodology.
Need the theory behind profit margin?
Read the formula entry for the derivation, units and related equations.