Sales Calculator

Sales Calculator | Profit, Margin, Markup and Revenue

Sales Calculator

Calculate gross profit, gross margin, markup, cost, and revenue from any two known values. Enter any two sales variables and solve for all five instantly.

Sales Calculator

Select which two values you know, enter them, and calculate the remaining variables.

$
$
VariableValue
Markup vs Margin Reference Table
CostMarkup %RevenueGross ProfitGross Margin %
$5010%$55.00$5.009.09%
$5020%$60.00$10.0016.67%
$5025%$62.50$12.5020.00%
$5033%$66.50$16.5024.81%
$5050%$75.00$25.0033.33%
$5075%$87.50$37.5042.86%
$50100%$100.00$50.0050.00%
$50150%$125.00$75.0060.00%
$50200%$150.00$100.0066.67%

The Five Sales Variables and Their Formulas

Every sales transaction involves five key variables. Knowing any two dollar-related values allows you to solve for all five. Here are the three core equations that define the relationships:

1. Gross Profit (P) = Revenue (R) – Cost (C)
2. Markup (M%) = Gross Profit / Cost x 100
3. Gross Margin (G%) = Gross Profit / Revenue x 100

Solving for Each Variable

Revenue = Cost + Profit
Revenue = Cost / (1 – Gross Margin%)
Cost = Revenue – Profit
Cost = Revenue x (1 – Gross Margin%)
Cost = Profit / Markup%
Profit = Revenue – Cost
Profit = Revenue x Gross Margin%
Markup% = Profit / Cost x 100
Margin% = Profit / Revenue x 100

Markup vs Margin: The Key Difference

Markup and margin are often confused but they measure profit from different reference points. Understanding the distinction is essential for accurate pricing.

Gross Markup

Markup is the amount added to the cost of a product to arrive at the selling price, expressed as a percentage of cost. A 50% markup on a $100 cost item means adding $50 to get a selling price of $150.

Gross Margin

Gross margin measures profit as a percentage of selling price (revenue). The same $100 cost item sold at $150 has a gross margin of $50 / $150, which equals 33.33%. Gross margin is always lower than markup on the same transaction.

Converting Between Markup and Margin

Margin = Markup / (1 + Markup)
Markup = Margin / (1 – Margin)

Example: 50% Markup = 50% / 150% = 33.33% Margin
Example: 40% Margin = 40% / 60% = 66.67% Markup

Many pricing errors occur because business owners use markup percentages when they intend to achieve a specific margin. Always clarify which metric is being used before setting prices.

How to Use the Sales Calculator

This sales calculator requires only two inputs to solve for all five variables. At least one input must be a dollar value.

  1. Select the two variables you already know from the dropdown menu.
  2. Enter your known values in the input fields that appear.
  3. Click Calculate to instantly see cost, revenue, gross profit, markup, and gross margin.

Practical Applications

  • Setting product prices to achieve a specific target margin.
  • Verifying that a quoted selling price meets your minimum profit requirements.
  • Comparing profitability across different products or categories.
  • Calculating how a cost increase affects your margin if the selling price stays fixed.
  • Determining the cost you can afford to pay given a fixed selling price and target margin.

Frequently Asked Questions

Gross profit is the difference between revenue and cost. The formula is Gross Profit = Revenue minus Cost. It represents the money a business retains from each sale before deducting operating expenses, taxes, and other overhead costs.
Markup is gross profit divided by cost, expressed as a percentage. Gross margin is gross profit divided by revenue, expressed as a percentage. Markup is calculated relative to cost while margin is calculated relative to selling price. A 50% markup on a $10 cost item produces a $5 profit and $15 selling price, which translates to a 33.3% gross margin.
To calculate gross margin, subtract cost from revenue to find gross profit, then divide gross profit by revenue and multiply by 100. Formula: Gross Margin % = (Revenue minus Cost) / Revenue x 100. If revenue is $150 and cost is $90, gross profit is $60 and gross margin is 60 / 150 x 100 = 40%.
To calculate selling price from cost and margin, use the formula: Revenue = Cost / (1 minus Gross Margin). For example, if cost is $80 and you want a 40% margin, Revenue = $80 / (1 minus 0.40) = $80 / 0.60 = $133.33.
A good gross margin for retail typically ranges from 20% to 50% depending on the industry and product category. Grocery retailers often operate at 25 to 35%, while clothing and specialty retailers may target 40 to 60%. Higher gross margins provide more cushion to cover operating costs and remain profitable.
To convert markup to margin, use the formula: Margin = Markup / (1 + Markup). For example, a 50% markup converts to 50% / (1 + 0.50) = 50% / 1.50 = 33.3% margin. To convert margin to markup: Markup = Margin / (1 minus Margin).
Yes. Select the option for Profit and Gross Margin from the dropdown. The calculator will derive revenue from profit divided by margin percentage, then calculate cost and markup. All five variables are solved from just these two known inputs.