Ecommerce Profit Calculator: How Much Margin Should You Make on a Product?
Determine the best price to maximize profits and acquire customers with our free ecommerce profit margin calculator.

Pricing your products requires a delicate balance between cost and value.
On one side, the cost to produce products, acquire customers, and fulfill orders. On the other, how customers perceive the value of what they’re getting.
Unfortunately, most ecommerce businesses don’t have a clear picture of what the first half of that equation truly costs.
Without it, you could be losing money on each sale. Especially as costs increase due to fluctuating tariffs that we’re all trying to navigate.
Our ecommerce profit calculator is here to help.
Whether you operate a Shopify store, sell on Amazon, or manage any other ecommerce platform, understanding your profit margin is essential for sustainable financial health.
What Is a Good Profit Margin for Ecommerce?
A good profit margin varies significantly by industry and depends on multiple factors, including cost structure, competitive landscape, and market positioning.
Industry standards suggest that, for ecommerce businesses in 2025, the best-performing companies (top quartile) achieve net profit margins of just above 20%, while the median sits at about 8%.
According to recent data, premium leisure and lifestyle brands lead the industry with gross margins of above 75% (top quartile), while electronics operate at a median of just about 50%.
Platform choice can also impacts profitability as Shopify merchants may see different margins than Amazon sellers, due to fees and operational costs.
These benchmarks provide context for evaluating your pricing strategy and operational efficiency. Net profit margins below 5% put you below the median and they leave margin thin buffer (if at all) for growth investments or unexpected market changes (like tariffs).
The Four-Quarter Accounting Framework
Understanding profit margins becomes more actionable when you apply what Taylor Holiday has termed “Four Quarter Accounting.” Unlike general ecommerce accounting, this framework provides a quantitative matrix for how you should allocate revenue:
- Customer Acquisition Cost (CAC)
- Cost of Delivery (COD)
- Operating Expenses
- Net Profit
In short, variable costs (CAC + COD) should total no more than 50% of revenue, leaving the remaining 50% for operating expenses and profit. For unit economics analysis, focus primarily on the first two quarters: CAC and COD.
Cost of delivery encompasses every product-related expenditure from creation to customer and back again:
- Cost of goods sold (COGS)
- Inbound shipping and receiving
- Tariffs
- Payment processing
- Pick and pack fees
- Outbound shipping to customers
- Returns processing and refunds
The framework’s power lies in its simplicity. If your marketing efficiency rating - MER- (total revenue divided by total spend) is greater than 4, your variable ad spend will be less than 25% of overall revenue.
By maintaining these ratios, ecommerce businesses can ensure sustainable profitability while having sufficient “fuel profit” (gross profit minus net target) to invest in growth. This systematic approach transforms profit margin analysis from abstract percentages into actionable operational targets.
How to Use Our Ecommerce Profit Calculator
Our ecommerce profit calculator simplifies complex calculations through an intuitive three-step process.
Step 1. Enter your cost details
Product cost
Enter the base cost of purchasing or manufacturing your item. This is your core COGS before any additional expenses.
Product cost subject to tariffs
Add the cost that is subject to tariffs (Hint: not all of your COGS are necessarily subject to tariffs).
Shipping cost
Add the cost of shipping the product to your customer. Varies based on carrier, weight, and delivery speed.
Shipping income
Input any shipping fees you charge customers. This helps offset your shipping costs and impacts your overall profitability.
Sales tax rate (%)
Enter your applicable sales tax percentage. The calculator will automatically compute the tax amount based on your selling price.
Tariffs rate (%)
Use the current tariff rate that applies to your products — the rate will be applied as a per unit amount and added to the total cost.
Apply sales tax on shipping income?
Select “Yes” or “No” using the radio buttons to indicate whether sales tax applies to shipping charges in your jurisdiction.
Step 2. Enter your merchant fees
Select your payment processor from the dropdown menu to automatically populate fee structures:
- PayPal
- Shopify Payments
- Stripe
- Amazon Pay
- Afterpay
- Other
For example, PayPal charges 3.5% + $0.49 per transaction. If you select “Other,” you can manually enter custom fee structures.
- Variable Fees Per Transaction (%)
- Fixed Fees Per Transaction ($)
Step 3. Enter your target profit margin
Choose your target return basis from the dropdown menu:
- Gross Margin %: Calculate based on profit as a percentage of revenue
- Markup %: Calculate based on profit as a percentage of cost
Enter your target return percentage in the field provided. The calculator will determine your optimal selling price based on this target.
Understanding your results
The calculator provides comprehensive results across three sections:
Product pricing
- Product price: Your recommended selling price
- Shipping income: Customer shipping charges
- Total selling price (revenue): Product + shipping revenue
- Sales tax: Calculated tax amount
- Tariffs that you will be paying and should definitely take into account
- Total price: Final customer price including tax
Cost of sales
- Product cost: Your base COGS
- Shipping cost: Your shipping expenses
- Merchant fees: Payment processing
- Total costs: Sum of all variable costs
Profit & analytics
- Gross profit: Dollar amount of profit per unit
- Gross margin %: Profit as percentage of revenue
- Markup %: Profit as percentage of cost
Unit Economics for Your Ecommerce Store
Unit economics form the foundation of sustainable ecommerce profitability. This critical concept helps you understand your revenues and costs per unit sold.
Once you understand your cost per unit, you can calculate gross profit margin and break-even points, determine the best selling price for your product, forecast your profits, and optimize your product offerings.
For this purpose, we define a unit as one item — one bottle of hot sauce, one t-shirt, one tube of organic toothpaste, or any other product you sell on your online store.
Determining the price starts with expenses.
The cost of making money
Inventory-based businesses incur two types of costs: (1) fixed and (2) variable.
Fixed costs exist independently of sales and remain constant regardless of order volume. For example, even if you don’t make any sales, you still need to pay rent, payroll, and utilities. Operational costs impact your overall profitability, but not your per-unit calculations.
The other type are variable. These are created or directly impacted by how much you sell. As you sell more products, variable costs increase in proportion to the volume. These are the primary expenses to consider when calculating the cost per unit sold.
Cost of goods sold (COGS)
The costs of getting a product ready for sale, including: costs of purchasing or manufacturing the product, packaging costs, and shipping-in or freight-in costs to deliver your product to your warehouse (this last cost doesn’t apply if you are dropshipping directly to the customer).
Shipping and fulfillment costs
The cost of shipping the product to your customer varies depending on carrier, product weight, and delivery timeframe. For DTC and CPG brands, this is usually the largest expense after COGS. To mitigate the impact of shipping costs, many ecommerce stores charge customers for shipping or set free-shipping thresholds.
Merchant fees
Also known as transaction fees or payment processor fees, these are charges by credit cards — e.g., Stripe, Shopify Pay, PayPal, Afterpay, etc. — for processing transactions. Fees consist of a fixed percentage and a fixed amount per transaction. Usual rates start at 2.9% + $0.30 per transaction, but can be lowered in certain circumstances.
Tariffs
Last —but definitely not least — tariffs. You need to be aware of how much of your COGS per unit are subject to tariffs, and what the applicable rate should be, in order to calculate how this impacts your pricing as well as your profit margins.
Calculating Profit Margin for Your Products
To determine your selling price, calculate your target profit margin. Understanding the various profit metrics and their formulas is essential for making informed pricing decisions.
Key profit metrics and formulas
Sales
The total revenue from all transactions before any deductions.
Sales = Number of Units Sold × Selling Price per Unit
Net Sales
Revenue after deducting discounts, promotions, returns, and refunds.
Net Sales = Sales - (Discounts + Returns)
Gross Profit
The total dollars remaining after deducting your cost of goods sold from net sales.
Gross Profit = Net Sales - COGS
Gross Profit Margin
Percentage of revenue retained after accounting for COGS.
Gross Profit Margin = (Gross Profit / Net Sales) × 100
Contribution Profit
Profit dollars remaining after deducting all variable costs from net sales.
Contribution Profit = Net Sales - Variable Costs (COGS + Shipping + Merchant Fees)
Contribution Profit Margin
The percentage of revenue available to cover fixed costs and profit.
Contribution Profit Margin = (Contribution Profit / Net Sales) × 100
Net Operating Profit
Actual profit after deducting all operating expenses from gross profit.
Net Operating Profit = Gross Profit - Operating Expenses
EBITDA
Earnings before interest, tax, depreciation and amortization, which is similar to operating profit, but ads back depreciation and amortization.
Templates and tools for profit calculation
Our profit calculator provides a template that works seamlessly with various ecommerce platforms — Shopify accounting, Amazon bookkeeping, and others. Templates like these help you quickly input your data and get accurate calculations.
The calculator’s functionalities include:
- Gross profit margin and markup
- Common payment processors’ fees
- Sales tax calculations
- Total revenue projections
- Return on investment analysis
Using markup to price your products
Markup is another critical metric for ecommerce pricing. While profit margin shows the percentage of revenue you keep, markup shows the percentage you add to your costs to determine the sale price.
The relationship between markup and margin often confuses new ecommerce entrepreneurs. Here’s how they relate:
- 50% markup equals a 33.3% profit margin
- 100% markup equals a 50% profit margin
- 200% markup equals a 66.7% profit margin
Markups let you set competitive prices while ensuring profitability. Our calculator displays both metrics, allowing you to make informed decisions based on your business model and industry standards.
Shopify integration and ecommerce platform considerations
If you’re running a Shopify store, our profit calculator integrates seamlessly with Shopify’s fee structure. The calculator takes into account Shopify Payments fees and shows you how different pricing strategies impact your bottom line.
For Amazon sellers, the calculator can factor in Amazon’s various fee structures, helping you price products competitively while maintaining healthy margins. Whether you’re using dropshipping or holding inventory, accurate profit calculations are essential.
Product pricing strategies for better margins
Effective pricing goes beyond simple calculations. Consider these strategies:
Value-based pricing
Price based on the perceived value to customers rather than costs + markup. This allows for higher profit margins on unique or high-quality products.
Psychological pricing
Use pricing that appeals to customer psychology; most notably, anchoring, where expensive products alleviate the perceived cost of mid-to-low-priced products.
Dynamic pricing
Adjust prices based on demand, competition, and inventory levels. For example, raising the price of specific SKUs or even variants as availability declines.
Bundle pricing
Combine products to increase average order value (AOV) while maintaining healthy margins. This strategy works particularly well for complementary products.
Maximize Your Ecommerce Profit Margin with Smart Pricing
Unit economics should be at the forefront of your business decisions. This understanding enables you to scale your online business sustainably while maintaining healthy profit margins across your lines.
Once you understand your costs and determine your target profit, our profit margin calculator helps you find the ideal selling price for your product. This ensures you know exactly how much to charge customers without ignoring competitive positioning.
Increasing prices without hurting sales requires strategic thinking. Focus on communicating value, building brand strength, and creating customer loyalty. These elements enable you to command higher prices while preserving customer satisfaction.
Remember, successful ecommerce businesses balance multiple metrics — profit margin, conversion rate, average order value, and customer lifetime value. Our profit calculator gives you the foundation for making data-driven pricing decisions that support long-term growth.
Whether you’re launching your first online store or optimizing an established ecommerce business, understanding your true profit margins is the first step toward sustainable success.
Excited to do your bookkeeping? Didn't think so.
That’s what we’re here for.
Accurate ecommerce books, done for you.
FAQs
The amount of profit you should make depends on your industry, business model, and operational costs. Generally, aim for a net profit margin of at least 20% to ensure sustainable growth. Some high-volume businesses can operate on lower margins, while specialty items often command higher margins.
Several factors impact your profit margin:
- Cost of goods sold (COGS)
- Shipping costs and fulfillment expenses
- Payment processing fees
- Marketing and customer acquisition costs
- Operational expenses (OpEx)
- Competition and market positioning
- Average order value (AOV)
- Conversion rate optimization
To optimize your profit margins:
- Negotiate better rates with suppliers to reduce COGS
- Optimize shipping costs through carrier negotiations
- Increase average order value through bundling and upsells
- Improve conversion rate to reduce customer acquisition costs
- Streamline operations to reduce total expenses
- Consider raising prices if market positioning allows
- Focus on higher-margin products in your mix