

# Margin and markup calculator

Canonical interactive tool: https://taskpencil.com/tools/margin-markup-calculator/

Calculate gross profit, margin, markup, target selling prices, and the effect of discounts.

## How it works

Profit = selling price − cost. Margin = profit ÷ selling price × 100. Markup = profit ÷ cost × 100. Target price = cost ÷ (1 − target margin / 100).

## Instructions

1. Choose selling-price or target-margin mode and enter cost in one currency.

2. Enter the selling price or a target margin below 100%, then set an optional discount.

3. Compare gross profit, margin, markup, and the discounted result before copying or printing.

## Worked examples

### Typical task

A cost of 60.00 and selling price of 100.00 give 40.00 gross profit. Margin is 40 ÷ 100 = 40%; markup is 40 ÷ 60 × 100 = 66.6667%.

### A different case

Discount that 100.00 selling price by 10% and revenue becomes 90.00. Profit falls to 30.00 and margin to 33.3333%; a 10% price reduction is not a 10% profit reduction.

## Interpreting your result

Gross profit excludes overhead, fees, shipping, and taxes. Margin uses selling price as its base; markup uses cost.

## Limits and assumptions

Use one currency. Amounts allow two decimal places and round to cents. Target margin must be below 100% with a positive cost. A zero selling price makes margin undefined; a zero cost makes markup undefined. Discount is 0–100%. Gross profit excludes taxes, fees, shipping, and overhead. All processing is local; inputs are not stored or transmitted.

### Why are margin and markup different?

They divide the same profit by different bases. A 50% markup on cost produces a 33.3333% margin on selling price.

### Can I target a 100% margin?

No. With a positive cost, the target-price formula divides by 1 minus the margin; 100% would divide by zero.

### What does undefined mean?

A zero selling price has no defined margin, and a zero cost has no defined markup. Profit can still be displayed without inventing a percentage.



## Continue with a related task

- [Guides](https://taskpencil.com/guides/)

- [Unit-price comparison](https://taskpencil.com/tools/unit-price-comparison/)

- [Invoice generator](https://taskpencil.com/tools/invoice-generator/)


- [Compare package prices and multipacks](https://taskpencil.com/guides/comparing-package-prices-and-multipacks/)


