# Profit margin calculator

> Margin and markup from cost and price, or the price you need for a target margin or markup.

Category: Business · Web page: https://plumcalc.com/profit-margin/ · Last reviewed: November 19, 2026

## How to use

1. Enter your numbers: I want to find, Cost per unit, Selling price, Units sold. Example figures are filled in to start.
2. Read your result instantly: the gross margin appears in the results panel, with a full breakdown underneath.
3. Save as PDF, copy the results, or save a scenario to compare different inputs side by side.

## Inputs

| Key | Field | Type | Default | Notes |
|---|---|---|---|---|
| `mode` | I want to find | choice | margin | options: `margin` (Margin from cost and price), `price` (Price for a target margin), `markup` (Price for a target markup) |
| `cost` | Cost per unit | number | 40 | currency |
| `price` | Selling price | number | 65 | currency; Only used in some modes |
| `mg` | Target margin | number | 35 | %; Only used in some modes |
| `mu` | Target markup | number | 50 | %; Only used in some modes |
| `qty` | Units sold | number | 1 | Optional: totals for a batch |

## Worked example (default inputs)

- I want to find: Margin from cost and price
- Cost per unit: $40
- Selling price: $65
- Units sold: 1

**Gross margin: 38.46%** (markup 62.5%)

- Selling price: $65.00
- Profit per unit: $25.00
- Gross margin: 38.46%
- Markup: 62.5%
- Revenue for 1 unit: $65.00
- Profit for 1 unit: $25.00

## How it's calculated

Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost. For a target margin, price = cost ÷ (1 − margin). For a target markup, price = cost × (1 + markup). A 50% markup is only a 33.3% margin.

## Frequently asked questions

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

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. Selling a $40 item for $65 is a 38.5% margin but a 62.5% markup.

### How do I price for a target margin?

Divide the cost by (1 − target margin). For a 35% margin on a $40 cost, the price is $40 ÷ 0.65 = $61.54.

### Is gross margin the same as net profit?

No. Gross margin only subtracts the cost of the item. Net profit also subtracts overhead such as rent, salaries, marketing and taxes.

## Related calculators

- [NPV & IRR calculator](https://plumcalc.com/npv-irr/): Net present value, internal rate of return, payback period and profitability index for a series of cash flows.
- [Break-even calculator](https://plumcalc.com/break-even/): Units and sales needed to cover fixed costs or hit a profit target, with contribution margin.
---

PlumCalc (https://plumcalc.com) · Free, private online calculators. All calculations run in the user's browser; inputs are never sent to a server. Results are estimates for planning and education, not financial, tax, legal or medical advice.

For AI agents: MCP server at https://plumcalc.com/mcp (tools: list_calculators, calculate, evaluate_expression) · [Server card](https://plumcalc.com/.well-known/mcp/server-card.json) · [llms.txt](https://plumcalc.com/llms.txt) · [About](https://plumcalc.com/about) · [Contact](https://plumcalc.com/contact) · [Privacy Policy](https://plumcalc.com/privacy-policy) · [Terms of Service](https://plumcalc.com/terms-of-service)
