Free Online Margin Calculator
A profit margin calculator computes margin and markup from revenue and cost, printing both side by side for easy comparison.
Your data is processed entirely in your browser and never sent to any server.
Estimates only. For business decisions, factor in operating expenses, taxes, and any volume-based costs not captured here.
How to Use This Calculator
- Enter the revenue (selling price) in the first input.
- Enter the cost of goods or services sold in the second.
- Read the profit amount, profit margin %, and markup % in the result panel.
What Is a Margin Calculator?
Margin and markup are two ways to express the same profit. Margin = (revenue − cost) ÷ revenue × 100. Markup = (revenue − cost) ÷ cost × 100. For the same numbers markup is always larger — a 50% markup is only a 33.3% margin, and a 100% markup is a 50% margin.
Margin uses revenue as the denominator and is what investors care about because it scales with revenue. Markup uses cost as the denominator and is what buyers and pricing managers quote because cost is what they directly negotiate. Confusing the two is the single most common pricing mistake in retail and SaaS.
This tool shows both at once. Enter revenue and cost, read profit, margin %, and markup %. Useful when negotiating with a supplier who quotes markup while your spreadsheet expects margin, or vice versa.
Frequently Asked Questions
What does profit margin mean?
What's the difference between margin and markup?
What's a good profit margin?
Published by the WeGotEveryTool team. We build and test every tool in-house and update pages when the underlying spec, formula, or recommendation changes.
Reviewed: May 2026. Disclaimer: this tool is provided as-is for general informational use. For decisions with material consequences (medical, legal, financial, security) verify results against a qualified professional source.
Related Math & Calculators
Calculate markup percentage from cost and selling price. Set prices based on a target markup for your products.
Calculate discounts on multiple items. See line totals, grand total, and how much you save in a single view.
Calculate percentages, find what percent one number is of another, or add/subtract percentages. Simple and fast.
Calculate sale prices when a percentage discount is applied. Find the final price after any percent off.
Calculate Return on Investment with optional annualized ROI for holding periods longer than a year.