Sales Calculator (Cost, Revenue, Gross Profit, Gross Margin & Markup)

Sales Calculator (Cost, Revenue, Gross Profit, Gross Margin & Markup)

Growing AI Skill PRO

Enter Calculation

Enter any two of the five values (at least one must be Cost, Revenue or Gross Profit). Leave the rest blank.

Formula

R=Cost1−Gross Margin (%)100P=R−Cost\begin{gathered} R = \frac{\text{Cost}}{1 - \dfrac{\text{Gross Margin (\%)}}{100}} \qquad P = R - \text{Cost} \end{gathered}
Show calculation steps (1)
  1. Gross Profit, Gross Margin and Markup

    P=R−CGross Margin (%)=PR×100Markup (%)=PC×100where{C=CostR=RevenueP=Gross Profit\begin{gathered} P = R - C \qquad \text{Gross Margin (\%)} = \frac{P}{R}\times 100 \qquad \text{Markup (\%)} = \frac{P}{C}\times 100 \\[1.5em] \text{where}\quad \left\{ \begin{aligned} C &= \text{Cost} \\ R &= \text{Revenue} \\ P &= \text{Gross Profit} \end{aligned} \right. \end{gathered}

    Enter any two values; C = Cost, R = Revenue, P = Gross Profit, with P = R - C, margin = P/R and markup = P/C.

Usage stats

Advertisement

Results

Gross Profit
66.67
revenue minus cost
Cost 100
Revenue 166.67
Gross Profit 66.67
Gross Margin 40%
Markup 66.67%

Report an error on this page

What is the Sales Calculator?

This all-in-one sales calculator unifies the margin, markup, price and profit tools into a single form. It works with five linked variables: cost (what you pay), revenue (your selling price), gross profit (revenue minus cost), gross margin (profit as a percent of revenue) and markup (profit as a percent of cost). Enter any two of them and the calculator solves the remaining three. The math is universal business arithmetic, so the currency is just a label and the tool applies anywhere.

How to use it

Fill in exactly two fields and leave the others blank. At least one of the two must be a currency amount — Cost, Revenue or Gross Profit — because margin and markup are only ratios and cannot fix actual amounts on their own. Percentages are entered as whole numbers (40 means 40%). Click calculate and read the full breakdown of all five values.

Two fractions comparing margin (P over R) and markup (P over C)
Margin divides profit by revenue; markup divides profit by cost.

The formula explained

Three identities drive everything: gross profit \(P = R - C\), margin \(M = P / R\), and markup \(K = P / C\). From these you can rearrange: revenue from cost and margin is $$R = \frac{C}{1 - M}$$ revenue from cost and markup is $$R = C \times (1 + K)$$ and margin and markup convert with $$M = \frac{K}{1 + K}$$ The key distinction people miss is that margin divides by revenue while markup divides by cost, so the same profit gives a smaller margin percentage than markup percentage.

Advertisement

Worked example

Suppose cost = 100 and gross margin = 40%. Then $$R = \frac{100}{1 - 0.40} = 166.67$$ $$P = 166.67 - 100 = 66.67$$ $$K = \frac{66.67}{100} = 66.67\%$$ So a 40% margin equals a 66.67% markup on the same item.

Horizontal bar showing revenue R split into cost C and profit P
Revenue equals cost plus gross profit \((R = C + P)\).

FAQ

What is the difference between margin and markup? Margin is profit as a share of the selling price (revenue); markup is profit as a share of the cost. A 50% markup is only a 33.33% margin.

Why can't I enter only margin and markup? Both are ratios with no dollar anchor, so the absolute cost, revenue and profit are undetermined. Add any one currency value to solve the rest.

Can profit be negative? Yes — if you sell below cost, gross profit, margin and markup all turn negative, which the calculator handles.

Last updated:

Most popular in Financial

View all Financial calculators