# Profit Margin Calculator

Calculate profit margin, markup, and gross profit instantly from cost and price to set pricing that keeps your business consistently profitable.

---

- **Canonical URL:** https://dothecalculation.com/calculators/profit-margin-calculator
- **Category:** Business tools
- **Publisher:** Do The Calculation (https://dothecalculation.com)
- **Cost:** Free, no account or sign-up required
- **Privacy:** Runs entirely in the browser; inputs are never sent to a server
- **Methodology:** https://dothecalculation.com/methodology
- **Reviewed by:** Dr. Marcus Sterling, PhD, PhD in Public Economics, University of Chicago (https://dothecalculation.com/about/team/marcus-sterling)

---

## Analyze profit margins and markups

Input revenue and costs to instantly determine gross profit, profit margin percentage, markup percentage, and cost-to-revenue ratio.

- Gross profit margins
- Cost-to-selling price markup
- Visual profitability breakdown

## Profit Margin vs. Markup: The Core Differences

Profit margin and markup are two closely related financial metrics used to evaluate business profitability. Both calculations use the same absolute dollar amount of **Gross Profit** (Revenue minus Cost), but they measure it relative to different financial baselines.

**Profit Margin** calculates gross profit relative to the **Selling Price (Revenue)**. It measures how much of each dollar of sales the business actually keeps as profit after paying for the cost of goods sold (COGS).

**Markup** calculates gross profit relative to the **Wholesale Cost**. It measures the percentage premium added to the acquisition cost of a product to determine its final retail selling price.

Understanding both metrics is essential: margin tells you what percentage of sales is profit, while markup tells you how much to add to cost to set your retail pricing.

## The Margin and Markup Formulas

To calculate gross profit, profit margin percentage, and markup percentage, apply the following mathematical equations:

$$\text{Gross Profit} = \text{Revenue} - \text{Cost}$$

$$\text{Profit Margin (\%)} = \left( \frac{\text{Revenue} - \text{Cost}}{\text{Revenue}} \right) \times 100$$

$$\text{Markup (\%)} = \left( \frac{\text{Revenue} - \text{Cost}}{\text{Cost}} \right) \times 100$$

For example, if an item costs $40 to buy wholesale and sells for $60 retail, the gross profit is $20. The profit margin is \((20 / 60) \times 100 = 33.33\%\), while the markup is \((20 / 40) \times 100 = 50\%\). Markup will always output a higher percentage than profit margin because its denominator (cost) is smaller.

## Retail Pricing Strategies: Keystoning

In retail commerce, a common shortcut is **Keystoning**—pricing inventory at double the wholesale cost. Keystoning results in a flat 100% markup and a 50% gross profit margin. While simple, modern pricing models use value-based or dynamic pricing to adjust margins based on brand strength and customer demand.

## How to Use This Calculator

Enter your total revenue and your total cost for the same product or period.

The calculator subtracts cost from revenue for gross profit, divides that profit by revenue for your margin percentage, and divides it by cost for your markup percentage.

## Worked Example: $100,000 Revenue

A business generates $100,000 in revenue against $62,000 in costs for the period.

Gross profit: $100,000 − $62,000 = $38,000. Profit margin: $38,000 ÷ $100,000 × 100 = 38%. Markup: $38,000 ÷ $62,000 × 100 ≈ 61.3% — the percentage that was added on top of cost to reach the selling price.

## Related Calculators

Take this same margin down to the operating level with the [operating margin calculator](/calculators/operating-margin-calculator), or find the sales volume needed to cover fixed costs with the [break-even calculator](/calculators/break-even-calculator).

## Frequently asked questions

### What is the difference between margin and markup?

Margin calculates profit relative to the selling price (revenue). Markup calculates profit relative to the cost of goods sold.

### Why is markup percentage always higher than margin?

Markup uses cost as its denominator, which is always smaller than the sales price (revenue) used as the margin denominator.

### What is a good gross profit margin?

A good margin depends on the industry. Software services often operate on 70-80% gross margins, retail ranges from 30-50%, while grocery and wholesale operate on thin margins of 10-20%.

### How do I calculate retail price from target margin?

To find selling price from a target margin: Selling Price = Cost / (1 - Margin%). For example, an item costing $30 with a target 40% margin sells for $30 / 0.60 = $50.

### How do I calculate markup price?

Selling Price = Cost x (1 + Markup%). For example, an item costing $20 with a 50% markup sells for $20 x 1.5 = $30.

### What is gross profit margin?

Gross profit margin is revenue minus direct production costs (COGS) divided by revenue, representing product-level profitability before administrative overhead.

### What is net profit margin?

Net profit margin is net income (all revenues minus all costs, operating expenses, taxes, and interest) divided by revenue, reflecting bottom-line profitability.

### How does discount affect margin?

Offering a discount directly lowers the selling price without reducing the product cost, which shrinks both the gross profit dollars and the profit margin percentage.

### Can profit margin exceed 100 percent?

No. Since profit margin is gross profit divided by selling price, and gross profit cannot exceed the selling price (unless cost is negative, which is impossible), margin cannot exceed 100%.

### Can markup exceed 100 percent?

Yes. Markup is profit divided by cost. If you sell an item for $100 that cost $10 to make, the profit is $90 and the markup is 900%. There is no upper limit on markup percentage.

## Related concepts

- **Gross Profit** — The absolute dollar amount earned after subtracting direct product costs from revenue.
- **Cost of Goods Sold** — The direct costs of producing the goods sold by a company, including materials and direct labor.
- **Operating Margin** — The percentage of revenue left over after paying for operating expenses, before interest and taxes.

## Related guides

- [Profit Margin: Formulas, Examples, and Calculator Guide](https://dothecalculation.com/blog/business/profit-margin-calculation) — Calculate gross, operating, and net profit margins, understand margin versus markup, and use each result to make better pricing and cost decisions.
- [Discount, Markup, and Margin: A Practical Pricing Guide](https://dothecalculation.com/blog/business/discount-markup-strategy) — Calculate sale price, markup, and margin, then test how a discount changes unit profit, required sales volume, and the economics of a promotion.

## Related calculators

- [Margin Calculator](https://dothecalculation.com/calculators/margin-calculator) — Calculate profit margin, gross margin, revenue, and cost instantly with step-by-step work. Enter any two values and get the third.
- [Operating Margin & EBIT Calculator](https://dothecalculation.com/calculators/operating-margin-calculator) — Calculate gross profit, operating income, operating margin percentage, and gross margin to evaluate your core business profitability.
- [Overhead Rate Calculator](https://dothecalculation.com/calculators/overhead-rate-calculator) — Calculate your business overhead rate as a percentage of sales or labor cost to price products and services effectively and profitably.
- [EBITDA & EBITDA Margin Calculator](https://dothecalculation.com/calculators/ebitda-calculator) — Compute EBITDA, EBITDA margin, and operating EBIT margin from revenue and operating expenses to evaluate core business profitability.
- [Cost of Goods Sold (COGS) Calculator](https://dothecalculation.com/calculators/cogs-calculator) — Calculate cost of goods sold using beginning and ending inventory plus direct costs for accurate accounting and profitability reporting.
- [Customer Acquisition Cost (CAC) & LTV Calculator](https://dothecalculation.com/calculators/customer-acquisition-cost-calculator) — Calculate your customer acquisition cost, lifetime value, LTV to CAC ratio, and CAC payback period to measure marketing efficiency accurately.

---

_This calculator is for educational and business planning purposes only. Valuation ranges, markup formulas, margin percentages, freelance calculations, and project costing schedules are projections and do not constitute legal, tax, or professional valuation advice. Always consult a certified public accountant (CPA) or business advisor before making corporate pricing or exit transactions._

---

_Source: [Do The Calculation](https://dothecalculation.com/calculators/profit-margin-calculator). Quote freely with attribution and a link to this page._
