Profit Margin & Fee Calculator
UNIT ECONOMICS INPUTS
E-Commerce Unit Economics & Profit Margin Formulas
Accurate profit margin calculations must account for payment gateway transaction rates (Stripe, PayPal, Shopify Payments) and fulfillment overhead to determine true net profitability per unit sold.
When to use this calculator
- Calculate retail selling prices required to hit a target gross or net profit margin percentage
- Factor payment processing fees (e.g. 2.9% + $0.30) into product pricing to protect net margins
- Compare gross profit vs. net profit after deducting shipping, packaging, and gateway fees
- Determine markup percentage needed to achieve a target gross margin on cost of goods (COGS)
Mathematical formulas
Gross Profit = Selling Price - COGS
Gross Margin (%) = (Gross Profit / Selling Price) × 100
Markup (%) = (Gross Profit / COGS) × 100
Net Profit = Selling Price - COGS - Gateway Fees - Shipping Costs
Net Margin (%) = (Net Profit / Selling Price) × 100 Related tools
Compare period-over-period revenue growth or margin changes using our Percentage Difference & Change Calculator.
Frequently Asked Questions
Common questions about this tool.
What is the difference between profit margin and markup? ▼
Profit margin measures profit relative to the final selling price (`Profit / Selling Price × 100`), while markup measures profit relative to the cost of goods sold (`Profit / COGS × 100`). A 50% markup equals a 33.3% profit margin.
What is a healthy profit margin for an e-commerce store? ▼
A healthy gross profit margin for e-commerce generally ranges between 50%–70%, while a sustainable net profit margin is typically 15%–25% after factoring payment processing, advertising (CAC), and shipping fulfillment overhead.
How do payment processing fees affect net profit margins? ▼
Payment gateways like Stripe and PayPal charge a percentage rate plus a fixed per-transaction fee (e.g., 2.9% + $0.30). On small order values ($10–$20), the fixed fee eats up a higher percentage of gross profit.
How do I calculate required retail price from a target profit margin? ▼
To achieve a target gross margin $M$, calculate selling price as: `Selling Price = Cost of Goods / (1 - (Target Margin / 100))`. For example, for a $20 cost item at 60% target margin: `$20 / 0.40 = $50`.
What is COGS (Cost of Goods Sold)? ▼
COGS includes all direct expenses required to produce or acquire a product: raw materials, manufacturing labor, packaging, and inbound supplier shipping. It excludes indirect overhead like marketing and office software.
Related Free Utilities
View all tools →ChatGPT Ad Blocker
Block ChatGPT upgrade banners, upsell promo cards, and partner app ads with a lightweight, privacy-first Manifest V3 Chrome extension.
JSON diff
JSON diff. Use this privacy-first json diff directly in your browser.
Base64 encoder
Base64 encoder. Use this privacy-first base64 encoder directly in your browser.
URL parser
URL parser. Use this privacy-first url parser directly in your browser.