Margin Calculator

Calculate gross profit margin for your products x or find the selling price or cost from a target margin.

Margin Calculator

Result
x

Margin Formula

Gross Margin % = ((Revenue ? COGS) / Revenue) x 100
Gross Margin %
The percentage of revenue that remains after subtracting the cost of goods sold.
Revenue
The selling price or total revenue from sales.
COGS
Cost of goods sold x direct costs to produce or purchase the product.

Rearranged:
Selling Price = COGS / (1 ? Margin%/100)
COGS = Revenue x (1 ? Margin%/100)

Note: Margin x Markup. A 40% margin = 66.7% markup. See the Markup Calculator.

Example

Selling Price$100
COGS$60
Gross Profit$40
Formula($40 / $100) x 100
Gross Margin = 40%

For every $100 in sales, $40 is gross profit available to cover operating expenses and generate net profit. Whether 40% is good depends on your industry x software aims for 70%+, grocery retail is often below 25%.

How to Improve Your Profit Margins

Profit margin is the most direct indicator of pricing health and cost efficiency. Unlike revenue, high margins give you pricing power, competitive resilience, and capital to reinvest. Here's how ecommerce and product businesses systematically improve their margins.

1. Negotiate Better COGS

For product businesses, COGS is the primary margin lever. Negotiate volume discounts with suppliers (even small businesses can get 10-20% reductions by committing to volume). Source from manufacturers directly rather than distributors. Consolidate suppliers to increase per-supplier spend and bargaining leverage. Review COGS annually x costs you accepted when starting are often improvable once you have transaction history.

2. Raise Prices Strategically

Most businesses undercharge. A 10% price increase with 0% volume loss creates a 10% revenue increase that flows almost entirely to gross profit. Test price increases on new customers first (no existing customer disruption), use anchoring (show a higher-priced option to make your target price feel reasonable), and frame increases around value additions rather than announcing "prices went up."

3. Shift Product Mix Toward High-Margin Items

Not all products deserve equal shelf space or marketing investment. Identify your highest-margin SKUs and promote them more aggressively x feature them prominently on your site, give them better ad budgets, and train your team to upsell toward them. Bundle low-margin products with high-margin accessories to raise blended order margin.

4. Reduce Shipping and Fulfillment Costs

Shipping is often the second-largest COGS component for ecommerce. Optimize packaging dimensions (dimensional weight pricing penalizes oversized boxes). Use a 3PL for better carrier rates. Ship from multiple locations to reduce zone-based costs. Negotiate rate cards directly with UPS/FedEx once you reach sufficient volume (typically $20K+/month).

5. Reduce Returns Rate

Returns directly destroy margin x you pay return shipping, lose the sale, and often can't resell the item at full price. Reduce returns by improving product descriptions and photos (set accurate expectations), adding size guides, using post-purchase emails to ensure customer success, and reviewing your most-returned products for quality or expectation gaps.

What Is a Good Gross Margin?

Benchmarks by sector: SaaS / digital products: 70-90%. Brand DTC ecommerce: 50-70%. Fashion/apparel: 50-65%. Consumer electronics: 25-35%. Grocery/CPG: 20-35%. Use industry benchmarks as a floor, not a ceiling x the best businesses in every category consistently outperform averages.

Frequently Asked Questions

Gross margin = (Revenue ? COGS) / Revenue. It covers only direct production/purchase costs. Net margin = (Revenue ? All Costs including overhead, salaries, rent, taxes) / Revenue. Net margin is the true bottom-line profitability. A business can have a healthy 60% gross margin but negative net margin if overhead is too high.
Margin is calculated as a percentage of selling price. Markup is calculated as a percentage of cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.7% markup. Confusing the two leads to pricing errors x always specify which you're using. Use the Markup Calculator to convert between them.
For ecommerce, a gross margin of 40-60% is typical for branded products. Net margins (after all costs) tend to be much lower: 5-20% for well-run ecommerce businesses. Dropshipping businesses often have gross margins below 20%, which makes sustainable profitability very difficult once ad costs are factored in.
Minimum Selling Price = COGS / (1 ? Target Margin%). For a product that costs $30 and you need a 50% gross margin: Price = $30 / (1 ? 0.5) = $60. This is your floor x you'll need to add overhead and profit on top to get your actual target price. Factor in all variable costs including payment processing (2-3%) and shipping.
Breakeven Units = Fixed Costs / (Selling Price ? Variable Cost per Unit). Higher margins mean fewer units needed to break even. If you have $10,000/month fixed costs and $40 margin per unit, you need 250 units to break even. Improving margin to $50/unit reduces breakeven to 200 units x a 20% improvement with the same fixed cost base.