Skip to content
Business

Sales Calculator

Calculate sales variables including revenue, cost, gross profit, margin, and markup. Enter any 2 known values to find the remaining 3.

Known values

$
$

Gross profit

$50.00

33.33% margin on $150.00 revenue

Sales analysis results

Sales variableValue
Cost$100.00
Revenue (selling price)$150.00
Gross profit$50.00
Gross margin33.33%
Markup50.00%
Report tool

Solve for cost, revenue, profit, margin, and markup

Retail and wholesale pricing revolves around five linked variables: cost, revenue (selling price), gross profit, gross margin, and markup. If you know any two, the other three follow from standard accounting relationships. Pick your known pair, enter values, and this calculator fills the rest.

Margin expresses profit as a share of selling price, while markup expresses profit as a share of cost. They are not interchangeable. Use the margin calculator for quick margin lookups or the profit calculator when you also track quantity and operating expenses.

Key formulas

Gross Profit=RevenueCost\text{Gross Profit} = \text{Revenue} - \text{Cost}
Gross Margin %=Gross ProfitRevenue×100\text{Gross Margin \%} = \frac{\text{Gross Profit}}{\text{Revenue}} \times 100
Markup %=Gross ProfitCost×100\text{Markup \%} = \frac{\text{Gross Profit}}{\text{Cost}} \times 100

When cost and target margin are known, revenue equals cost divided by (1 minus margin as a decimal). When revenue and markup are known, cost equals revenue divided by (1 plus markup as a decimal).

Worked example

Cost is $100 and revenue is $150. Gross profit is $50. Gross margin is $50 ÷ $150 = 33.33%. Markup is $50 ÷ $100 = 50%.

Frequently asked questions

What is the difference between margin and markup?
Margin divides profit by selling price. Markup divides profit by cost. A 50% markup equals a 33.33% margin when cost is $100 and price is $150.
Why must gross margin stay below 100%?
Margin is profit as a fraction of revenue. If margin reached 100%, cost would be zero. The calculator rejects margin at or above 100% when solving from cost.
Does this include operating expenses?
No. Results are gross figures before rent, payroll, and other overhead. For net profit after operating expenses, use the profit calculator.
Which two values should I enter?
Choose the pair you actually know from a price list, invoice, or target. Common choices are cost plus desired margin, or revenue plus known profit.

Resources and references

The formulas and methods in this calculator were checked against these independent sources.