Profit Margin Calculator

Enter your cost and selling price to get profit, margin and markup — or set a target margin and get the price to charge.

Runs in your browserUpdated
$
%
Result
—

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the Profit Margin Calculator

  1. Enter what the product costs you.
  2. Enter the selling price — or switch to “Price for a target margin”.
  3. Read profit, margin and markup.

Margin vs markup

Margin is profit as a share of the price; markup is profit as a share of the cost. Buying at $40 and selling at $65 is a $25 profit: a 38.5% margin but a 62.5% markup. To hit a target margin, price = cost ÷ (1 − margin).

See also the Markup Calculator and Break-even Calculator.

Also searched as: margin calculator, gross margin calculator, profit calculator, selling price calculator, margin vs markup.

Tools that pair well with the Profit Margin Calculator

  • ROI Calculator — See the return on investment for a stock, a property, a marketing campaign or a project — the gain, ROI % and the annualized return.
  • VAT Calculator — Add VAT to a net price or take it out of a gross price at any rate — UK 20%, Germany 19%, Netherlands 21%, India GST 18% or your own.
  • Discount Calculator — Find the sale price and how much you save for any percent or amount off.
  • Roman Numeral Converter — Convert any number from 1 to 3,999,999 into Roman numerals — or read Roman numerals back as numbers — with a breakdown of every symbol.

Frequently asked questions

What is a good profit margin?
It depends on the industry: grocery retail runs on a few percent, while software and services often exceed 50%.
Can a margin be over 100%?
No. Margin is a share of the price, so it can approach but never reach 100%. Markup can be any size.
Is anything I enter saved or sent?
No. The calculation runs in your browser. Your last inputs are remembered on this device only, so the page opens where you left off.
Can I install Profit Margin Calculator as a web app and use it offline?
Yes. Profit Margin Calculator is an installable web app (PWA) — installed from your browser, not downloaded from an app store. Click Install app at the top of this page in Chrome or Edge (Windows, macOS, Linux, ChromeOS) or on Android, use Share → Add to Home Screen on iPhone and iPad, or File → Add to Dock in Safari 17+ on a Mac. It then opens in its own window with its own icon, and because it runs entirely in your browser it keeps working offline. Firefox on desktop can’t install web apps. How installing works.

Related tools