How to Figure Out Margin

Learn how to calculate margin with step-by-step instructions, real examples, and our free calculator. Enter your numbers to see your margin instantly.

SC
Written by Sarah Chen, CFP
Certified Financial Planner
JW
Fact-checked by Dr. James Wilson, PhD
Options Strategy Researcher
Profit & LossFact-Checked

Input Values

$

What you charge the customer.

$

What you pay for or spend to create the product.

$

Cost to ship the product to the customer.

%

Payment processing, marketplace, or platform fees as a percentage of selling price.

Results

Gross Margin
0.00%
Effective Margin (After All Costs)
0.00%
Profit per Unit$0.00
Total Cost per Unit$0.00
Markup Percentage0.00%
Results update automatically as you change input values.

How to Figure Out Margin: A Complete Guide

Figuring out margin is essential for anyone selling a product or service. Whether you are a small business owner setting prices for the first time, an e-commerce seller on Amazon or Shopify, or a manager evaluating product profitability, knowing your margin tells you exactly how much of each sale becomes profit.

Margin is calculated by subtracting your total costs from your selling price, then dividing the result by the selling price. This gives you a percentage that represents the portion of each dollar you keep as profit. The higher the margin, the more profitable each sale.

Step-by-Step: How to Calculate Margin

Follow These Steps to Figure Out Your Margin

1
Step 1: Determine Your Selling Price
This is the price the customer actually pays. If you offer discounts, use the average discounted price, not the list price. For example, if your list price is $99.99 but you typically discount 10%, use $89.99.
2
Step 2: Add Up ALL Costs
Include product cost, shipping/fulfillment, packaging, payment processing fees (2-3%), marketplace fees (if applicable), return reserves, and any other per-unit costs. Missing even one cost category will overstate your margin.
3
Step 3: Calculate Profit
Subtract total costs from selling price: Profit = $89.99 - $42.00 (product) - $8.00 (shipping) - $2.70 (3% fees) = $37.29 per unit.
4
Step 4: Divide by Selling Price
Margin = Profit / Selling Price = $37.29 / $89.99 = 41.4%. This means you keep $0.414 of every dollar in revenue.
5
Step 5: Compare to Your Target
Is 41.4% above or below your target margin? If below, either raise your price or find ways to reduce costs. If above, you may have room for competitive pricing or increased marketing spend.
Basic Margin Formula
Margin = (Selling Price - Total Cost) / Selling Price × 100%
Where:
Selling Price = What the customer pays
Total Cost = All costs: product, shipping, fees, etc.
Real-World Margin Calculation
Given
Selling Price
$89.99
Product Cost
$42.00
Shipping
$8.00
Platform Fees
3% of $89.99 = $2.70
Calculation Steps
  1. 1Total Cost = $42.00 + $8.00 + $2.70 = $52.70
  2. 2Profit = $89.99 - $52.70 = $37.29
  3. 3Gross Margin (before shipping/fees) = ($89.99 - $42.00) / $89.99 = 53.3%
  4. 4Effective Margin (all costs) = $37.29 / $89.99 = 41.4%
  5. 5Markup = $37.29 / $52.70 = 70.8%
Result
The effective margin after all costs is 41.4%. The gross margin (product cost only) is 53.3%, but shipping and fees reduce the effective margin by nearly 12 percentage points.

Common Costs People Forget When Figuring Out Margin

Hidden Costs That Reduce Your Real Margin
Cost CategoryTypical RangeImpact on $100 SaleOften Overlooked?
Payment Processing2.5-3.5%$2.50-$3.50Sometimes
Platform/Marketplace Fees5-20%$5.00-$20.00Rarely
Returns & Refunds5-15%$5.00-$15.00Very Often
Packaging$0.50-$5.00$0.50-$5.00Often
Customer Service2-5%$2.00-$5.00Very Often
Warranty/Replacements1-5%$1.00-$5.00Very Often
Storage/Warehousing1-3%$1.00-$3.00Often

Margin Examples Across Business Types

To help you benchmark, here are practical margin examples for different types of businesses. These examples show both gross and effective margins after accounting for common hidden costs.

  • Coffee shop: Coffee costs $0.50, sells for $5.00 = 90% gross margin, but after rent, labor, and waste, net margin is typically 3-8%.
  • T-shirt print-on-demand: Cost $12, sell for $29.99 = 60% gross margin, but after platform fees, shipping, and returns, effective margin is 25-35%.
  • Freelance consulting: $0 COGS, $150/hour rate = theoretically 100% margin, but after accounting for non-billable hours, software, and self-employment taxes, effective margin is 40-60%.
  • Amazon FBA product: Cost $8, sell for $24.99 = 68% gross margin, but after Amazon fees (30-35%), shipping, and PPC ads, effective margin is often only 10-20%.
!
The Amazon Margin Trap

Many Amazon sellers believe they have a 60%+ margin based on product cost alone. After FBA fees (typically 30-35% of selling price), PPC advertising, returns, and storage fees, actual margins often fall to 10-15%. Always calculate your effective margin including ALL platform costs.

Quick Margin Reference for Traders

In trading, margin has a dual meaning. The profit margin on a trade (profit divided by investment) and the margin requirement (collateral needed to maintain a leveraged position) are completely different concepts. When figuring out your trading margin, calculate: Trade Margin = (Exit Price - Entry Price - Fees) / Entry Price. For options, include the premium paid or received in the calculation.

Frequently Asked Questions

The easiest way: subtract your cost from your selling price, then divide by the selling price, and multiply by 100. Example: sell for $50, cost is $30. ($50-$30)/$50 × 100 = 40% margin. Use the calculator above for instant results including hidden costs.

Sources & References

  • U.S. Securities and Exchange Commission (SEC) - Investor Education
  • Options Clearing Corporation (OCC) - Options Education
  • Chicago Board Options Exchange (CBOE) - Options Strategies
  • Hull, J.C. "Options, Futures, and Other Derivatives" (11th Edition, 2021)

Embed This Calculator on Your Website

Free to use with attribution

Copy the code below to add this calculator to your website, blog, or article. A link back to CoveredCallCalculator.net is included automatically.

<iframe src="https://coveredcallcalculator.net/embed/how-to-figure-out-margin" width="100%" height="500" frameborder="0" title="How to Figure Out Margin" style="border:1px solid #e2e8f0;border-radius:12px;max-width:600px;"></iframe>
<p style="font-size:12px;color:#64748b;margin-top:8px;">Calculator by <a href="https://coveredcallcalculator.net" target="_blank" rel="noopener">CoveredCallCalculator.net</a></p>