Digital Drive HQ
Financial Calculators

Margin Calculator

Calculate gross margin, markup, and profit.

Free account14-day Pro trialWorks in your browser

Sign in to use this tool

Create a free account to unlock every tool — plus a 14-day free trial of HQ Pro, no card required.

About the Margin Calculator

Gross margin is the share of the selling price that's profit. Enter your cost and revenue (selling price) and the calculator returns the gross margin percentage, the markup percentage, and the profit per unit. Knowing both margin and markup — and not confusing them — is essential for pricing products correctly.

How to use the Margin Calculator

  1. 01Enter your cost and selling price.
  2. 02Read the result instantly — it recalculates as you type.
  3. 03Adjust the numbers to model different scenarios.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of cost. This tool shows both.

How do I calculate gross margin?

Gross margin % = (price − cost) ÷ price × 100. A $100 item costing $60 has a 40% margin.

Related tools