Sub topic 10
Payment fees, sales tax and VAT in your price
This chapter turns a shown price into the amount you keep. It assumes you can already set a list price from value and a cost floor, and that you know the own-site pricing models (one-time, bundle, payment plan, membership). It also assumes basic percentage arithmetic. It is general guidance, not tax advice. Rates and rules change by country and state, so confirm them with your processor or an accountant.
The working model
Every own-site sale splits the money a customer pays into three parts:
- Tax, which you collect for a tax authority and do not keep.
- Processor fee, which the payment company takes.
- What remains, which is your revenue before course costs.
The chapter on your cost floor asked what price you need to cover costs. This chapter answers a narrower question: what number must be on the checkout page to leave you that amount.
Processor fees
A payment processor charges a fee per successful card payment. A common shape is a percentage plus a fixed amount, such as the assumed 2.9% + 0.30 used in this tutorial. That is an example rate, not a quote. Your real rate depends on provider, country, card type and currency conversion.
Three details affect your math:
- The fee is usually charged on the full amount the customer pays, including tax. A tax-inclusive price therefore carries a slightly larger fee than the pre-tax amount suggests.
- The fixed part hits small prices hardest. A 0.30 fixed fee is 0.3% of a 100.00 sale but 3% of a 10.00 sale. This matters when a coupon lowers the price, because the fixed fee does not shrink with it.
- Refunds often do not return the fee. Many processors keep all or part of the original fee when you refund. Check your provider's terms before you model a refund policy.
Extra costs can appear on top: currency conversion margins, chargeback (disputed payment) fees, and fees for payment plans. Add them to your model once you see them on a statement.
Tax-inclusive and tax-exclusive pricing
You can show tax inside the price or add it at checkout.
| Style | What the customer sees | Typical use | Effect on you |
|---|---|---|---|
| Tax-inclusive | One price that already contains tax | VAT regions such as the EU and UK, for consumers | Tax is carved out of the price, so you keep less than the shown number |
| Tax-exclusive | A price, then tax added at checkout | US-style sales tax | You keep the shown price, and the customer pays more |
The same list price therefore behaves differently by region. A 120.00 inclusive price at 20% VAT leaves 100.00 before fees. A 100.00 exclusive price in a 20% VAT region would charge the customer 120.00 and also leave 100.00. The customer sees a different number in each case.
VAT and sales tax in outline
- VAT (value-added tax) is charged in many countries, including EU states and the UK, on digital products. The rate depends on the customer's location, not yours. Sellers outside a country can still owe VAT there once they sell to its consumers. Some regions have registration thresholds, and some have none for digital sellers.
- US sales tax varies by state. Whether a digital course is taxable differs by state. Many states apply an "economic nexus" rule: once you pass a sales or transaction threshold in a state, you must register and collect there.
- Business customers in VAT regions can sometimes buy without VAT by giving a valid VAT number (reverse charge). Your checkout must validate that number.
You have two ways to handle all this. A merchant of record service sells to the customer on your behalf, so it collects and remits tax and you receive a payout. It charges a higher fee for that. With a plain processor you stay the seller, so you register, calculate, collect and file yourself, often with a tax-calculation add-on. Neither is universally better. A merchant of record reduces compliance work at a higher per-sale cost. A plain processor costs less per sale but leaves registration and filing to you.
On Udemy, the platform is the seller to the buyer for its own channels. Udemy handles collection of consumer taxes, and your revenue share is calculated under its current terms, which can change. Read the instructor terms for how taxes and fees affect your share rather than assuming a rule.
Calculating what you keep
The function below computes the split for either pricing style. It uses Decimal so that cents round predictably, as in the earlier net-per-sale example.
from decimal import Decimal, ROUND_HALF_UP, ROUND_CEILING
CENT = Decimal("0.01")
def money(x: Decimal, rounding=ROUND_HALF_UP) -> Decimal:
return x.quantize(CENT, rounding=rounding)
def breakdown(shown_price, tax_rate, fee_rate, fee_fixed, tax_inclusive):
"""Split a sale into charged amount, tax, processor fee and amount kept."""
if tax_inclusive:
charged = shown_price
pre_tax = charged / (1 + tax_rate)
else:
pre_tax = shown_price
charged = pre_tax * (1 + tax_rate)
tax = charged - pre_tax
fee = charged * fee_rate + fee_fixed # fee applies to the full charge
kept = pre_tax - fee
return {
"charged": money(charged),
"tax": money(tax),
"fee": money(fee),
"kept": money(kept),
}
def inclusive_price_for_target(target, tax_rate, fee_rate, fee_fixed):
"""Smallest tax-inclusive price (to the cent) that keeps at least `target`."""
price = (target + fee_fixed) / (1 / (1 + tax_rate) - fee_rate)
return money(price, ROUND_CEILING)
fee_rate = Decimal("0.029") # assumed example rate
fee_fixed = Decimal("0.30") # assumed example fixed fee
vat = breakdown(Decimal("120.00"), Decimal("0.20"), fee_rate, fee_fixed, True)
print(vat) # charged 120.00, tax 20.00, fee 3.78, kept 96.22
us = breakdown(Decimal("100.00"), Decimal("0.08"), fee_rate, fee_fixed, False)
print(us) # charged 108.00, tax 8.00, fee 3.43, kept 96.57
print(inclusive_price_for_target(Decimal("100"), Decimal("0.20"), fee_rate, fee_fixed))
# 124.70The last function works backward. If you need to keep 100.00 in a 20% VAT region, the shown price must be 124.70, not 120.00. Dividing the target by one minus the fee percentage is a common error. It ignores the tax portion, and the result is too low.
Common errors
- Applying the fee to the pre-tax amount. Processors usually charge on the total, so your model overstates what you keep.
- Adding tax to a price that is already inclusive. Customers are then charged more than the advertised price, and in many VAT regions that is not allowed for consumer pricing.
- Using your own country's rate for every buyer. For digital products, the buyer's location generally decides the rate.
- Treating tax as revenue. Collected tax belongs to the authority. Keep it out of revenue figures and out of your margin math.
- Ignoring currency. If you price in one currency and the customer pays in another, the conversion adds a margin, and rounding differs per currency. Some currencies have no minor unit, so the cent-based rounding above does not apply to them.
- Forgetting that fixed fees break percentage thinking. A 50% coupon on a 20.00 course does not halve your fee. The fixed 0.30 stays, so the fee takes a larger share of what is left. The own-site coupon chapter builds on this.
Putting it into your price
- Start with the net amount you need, taken from your cost floor and value-based price.
- Decide inclusive or exclusive display for each region you sell to.
- Add your processor's real percentage and fixed fee, and any conversion costs.
- Run the numbers at your list price and at your deepest planned discount.
- If the deepest discount drops below your floor, raise the list price or limit the discount, and do not accept a thinner margin.
Exercise
A customer in a 20% VAT region sees a tax-inclusive price of 59.00. Your processor charges an assumed 2.9% + 0.30 on the full amount charged. How much VAT is collected, what is the processor fee, and how much do you keep? Round each to the cent.
Show answer
Pre-tax amount = 59.00 / 1.20 = 49.1667, so VAT = 59.00 − 49.17 = 9.83. Fee = 59.00 × 0.029 + 0.30 = 1.711 + 0.30 = 2.011, which rounds to 2.01. Kept = 49.1667 − 2.011 = 47.1557, which rounds to 47.16.
Exercise
Why can a deep percentage coupon hurt your margin more than the discount percentage suggests on an own-site sale?
Show answer
The processor's fixed fee (for example 0.30) does not fall when the price falls. After a large discount, that fixed amount takes a bigger share of the lower price, so the amount you keep drops by more than the discount percentage.