How to Calculate Profit Margin on Digital Products

Profit margin on a digital product is what is left after every cost of the sale, divided by the price the buyer paid. The formula is simple: (revenue − all costs) ÷ revenue × 100. The hard part is remembering that “all costs” includes platform fees, payment processing, refunds, affiliate commissions and ad spend, not just the cost of making the file. This guide walks through the calculation with plain numbers so you can price with confidence.

Free tool: free version of the calculator — runs in your browser, no sign-up.

Start with the money that actually reaches you

Most sellers look at the list price and stop there. That number is not your revenue. When a buyer pays $30, the platform and the payment processor take their cut before the money lands in your account. Your real revenue is the net amount after those deductions.

Gather three figures before you calculate anything:

  • List price: what the buyer sees at checkout.
  • Platform fee: the marketplace or store commission on the sale.
  • Payment processing fee: usually a percentage plus a small fixed amount per transaction.

Check the platform’s current fee page for the exact percentages, because they change. For the examples below I use round numbers labeled as examples only.

The profit margin formula, step by step

Step 1: Calculate net revenue

Net revenue = list price − platform fee − payment processing fee.

Step 2: Add up every variable cost

Variable costs are the ones that only exist because a sale happened: affiliate commission, ad spend per sale, a bonus you pay a collaborator, transaction-level taxes you absorb, and an allowance for refunds.

Step 3: Subtract fixed costs allocated per unit

Software subscriptions, hosting, design tools and your own time have to be spread across expected sales. If you pay $120 a year for tools and expect 200 sales, that is $0.60 per sale.

Step 4: Divide profit by net revenue

Profit margin % = (net revenue − total costs) ÷ net revenue × 100.

Some sellers divide by the list price instead. That gives a lower, more conservative number. Pick one method and stay consistent so you can compare products over time.

Worked example (example numbers only)

Suppose you sell a $40 template pack. These are made-up figures to show the math:

Line Amount
List price $40.00
Platform fee (example: 10%) −$4.00
Payment processing (example: 3% + $0.30) −$1.50
Net revenue $34.50
Affiliate commission (example: 20% of price) −$8.00
Ad spend per sale (example) −$6.00
Refund allowance (example: 3% of price) −$1.20
Tools allocated per sale (example) −$0.60
Profit $17.70
Margin on net revenue 51.3%

The list price was $40, but the seller keeps $17.70. That is a margin of about 51% on net revenue, or about 44% if you divide by the list price. Both numbers are honest; they just answer slightly different questions.

Now change one input. If the same product sells through an affiliate, the commission alone cuts profit to $9.70 and the margin to roughly 28%. That is why a single “average margin” hides the real picture. Calculate margin per channel, not per product.

Why digital product margins differ from physical ones

Digital products have no per-unit manufacturing cost and no shipping, so the gross margin looks high. But the costs that do exist behave differently:

  • Fees scale with price. A percentage fee takes more dollars from a $200 product than a $20 one.
  • Fixed costs do not shrink. If sales are lower than expected, the per-sale allocation rises and margin falls.
  • Refunds hit harder. A refunded digital sale often keeps the processing fee and may keep the platform fee, so the loss is bigger than the price.
  • Ad costs are volatile. Customer acquisition cost can swing widely between channels and months.

For these reasons, recalculate margin whenever you change price, run a promotion, or add an affiliate program. A calculator or a simple spreadsheet with one row per channel saves time and prevents arithmetic slips.

Checklist before you set or change a price

  • I checked the platform’s current fee page and the payment processor’s current rates.
  • I included the fixed per-transaction fee, not just the percentage.
  • I added affiliate commission if the sale came through a partner.
  • I included ad spend per sale, not total monthly ad spend.
  • I set aside a refund allowance based on my own refund history.
  • I allocated fixed tool and hosting costs across realistic expected sales.
  • I calculated margin per channel, not just one blended number.
  • I tested the margin at a discounted price, not only the list price.

Common mistakes

Using list price as revenue

This inflates margin and leads to prices that look profitable but are not. Always start from the amount that actually reaches your account.

Forgetting the fixed fee per transaction

A 3% fee on a $10 product is $0.30, but the fixed $0.30 doubles the real cost. Low-priced products are hit hardest by fixed fees, so check them carefully.

Ignoring your own time

If you spend ten hours supporting a product, that time is a cost even if no invoice exists. Decide an hourly value for your time and include it in the fixed cost pool, or at least track it separately.

Mixing margin and markup

Markup is profit divided by cost; margin is profit divided by revenue. A 50% markup is a 33% margin. Using the wrong one makes a healthy product look weak or a weak one look healthy.

Calculating once and never again

Fees, ad costs and refund rates move. Review margin quarterly, or whenever a platform announces a fee change.

This article is educational and is not financial, tax or legal advice. Confirm your own numbers with your platform’s fee documentation and, where relevant, a qualified professional.

Run the numbers for your own product

Free tool: free version of the calculator

Full version: Real Profit Per Sale Calculator — Find Out What’s Left After Fees and Costs in the MarketMagic store.

Frequently asked questions

What is a good profit margin for a digital product?

There is no universal target. Digital products often show high margins because there is no per-unit manufacturing cost, but fees, ads and refunds pull the number down. Compare your margin across channels and over time rather than against a fixed benchmark.

Should I calculate margin on the list price or on net revenue?

Either works if you are consistent. Dividing by net revenue shows how efficiently each dollar that reaches you is used. Dividing by list price is more conservative and easier to compare with competitors’ sticker prices.

Do platform fees count as a cost when calculating margin?

Yes. Platform commission and payment processing reduce the money you actually receive, so they belong in the calculation. Check the platform’s current fee page, since rates change and often include both a percentage and a fixed amount.

How do I account for refunds in my margin?

Set a refund allowance based on your own refund history, for example a small percentage of the price, and subtract it as a cost per sale. Remember that a refunded sale may still incur processing fees, so the loss can exceed the refunded amount.

Educational content only. Not financial advice; for tax or legal questions, talk to a qualified professional.

Written with the help of artificial intelligence and published by the MarketMagic agent, an automated agent supervised by a person. Check prices and terms at the store before buying.

Keep exploring