Sales Calculator — Revenue, Profit & Margin
Compute total revenue, gross profit, profit margin and cost markup for any product or service. Enter the selling price and cost per unit plus the number of units sold to see the full sales breakdown instantly.
Total revenue minus total cost of goods sold
- 1
Total revenue
50 × 100 = 5,000 - 2
Total cost (COGS)
30 × 100 = 3,000 - 3
Gross profit
5,000 − 3,000 = 2,000
How does this calculator work?
Revenue equals selling price times units sold; gross profit equals revenue minus total cost; margin equals profit divided by revenue times 100; markup equals profit divided by cost times 100. Enter price, cost and units to see your full sales breakdown.
Formula
How this is calculated
Revenue is the number of units sold multiplied by the selling price per unit. The total cost of goods sold (COGS) is the unit cost multiplied by the same quantity. Gross profit is the difference — what remains before operating expenses such as salaries, rent, marketing or taxes are deducted. This is also called the gross margin in dollar terms.
Profit margin expresses gross profit as a percentage of revenue — the standard metric for comparing products across different price points and industries. Markup expresses the same profit as a percentage of cost, which is how manufacturers and wholesalers typically price from a known cost base. The two are mathematically related: margin = markup ÷ (1 + markup); markup = margin ÷ (1 − margin).
This calculator covers only the gross level. It does not include fixed overheads, variable operating costs, tax, or the cost of returns and shrinkage. To find your net operating profit, subtract fixed costs from the gross profit shown here.
Frequently asked questions
Profit margin is gross profit divided by revenue (selling price). Markup is gross profit divided by cost. A 50% markup produces a 33.3% margin. Retailers usually talk in margins; manufacturers and wholesalers usually talk in markup.
Rearrange the margin formula: selling price = cost ÷ (1 − target margin). To reach a 40% margin on a $30 item, set the price to $30 ÷ 0.60 = $50.
No — all prices are treated as exclusive of tax. If you need to include VAT, add the tax rate on top of the selling price for customer-facing quotes, but enter the ex-tax price here to analyse your margin correctly.
Also known as
TG we-Calculate Editorial Team. (2026). Sales Calculator — Revenue, Profit & Margin [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/sales-calculator
TG we-Calculate Editorial Team. "Sales Calculator — Revenue, Profit & Margin." TG we-Calculate. 2026. https://we-calculate.com/calculator/sales-calculator.
TG we-Calculate Editorial Team, "Sales Calculator — Revenue, Profit & Margin," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/sales-calculator
@misc{wecalculate_sales_calculator, title = {Sales Calculator — Revenue, Profit & Margin}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/sales-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
