Prompt
How do I calculate tax for digital goods and subscriptions?
Latest observation
Calculating tax for digital goods and subscriptions depends on where you sell, where the customer is located, and what kind of digital product or subscription it is. The exact rules vary a lot by country, state, and sometimes city.
Basic formula
A simple tax calculation is:
Tax = taxable amount × applicable tax rate
Total charged = price + tax
Example:
- Product price: $10.00
- Tax rate: 8%
- Tax: $0.80
- Total: $10.80
What you need to determine
1) Is the product taxable?
Digital products may include:
- ebooks
- software downloads
- streaming access
- online courses
- digital memberships
- SaaS subscriptions
Some places tax these, some don’t, and some only tax certain types.
2) Where is the customer?
For digital goods and subscriptions, tax is often based on the customer’s:
- billing address
- billing country
- IP address
- payment location
- business location
This is called sourcing or tax nexus rules, and it differs by jurisdiction.
3) What tax applies?
Depending on location, you may need to collect:
- Sales tax (common in the U.S.)
- VAT (common in Europe and many other countries)
- GST/HST (Canada and some other regions)
- local digital service taxes or regional taxes
4) Is the subscription taxed all at once or over time?
For subscriptions, tax may be:
- charged on each recurring invoice
- based on the delivery date of each billing period
- prorated if the customer upgrades/downgrades mid-cycle
Common scenarios
One-time digital download
If taxable:
- Tax = price × local tax rate
Monthly subscription
Each invoice is taxed separately:
- Monthly fee × applicable tax rate
Annual subscription paid upfront
Tax is often calculated on the full annual charge at purchase time, unless local rules require splitting it by period.
Tax-inclusive pricing
If your displayed price already includes tax, you may need to extract the tax portion:
Tax amount = total price × tax rate / (1 + tax rate)
Example:
- Gross price: $108
- Tax rate: 8%
- Tax portion: $108 × 0.08 / 1.08 = $8.00
- Net amount: $100.00
Example with VAT
Suppose:
- Subscription price: €50
- VAT rate: 20%
- Tax: €10
- Total: €60
If your price is VAT-inclusive:
- Gross price: €60
- VAT portion: €10
- Net: €50
Best practice
To calculate tax correctly, use a tax engine or follow jurisdiction rules based on:
- customer location
- product taxability
- exemption status
- business registration thresholds
- whether prices are tax-inclusive or exclusive
Common tools businesses use:
- Stripe Tax
- Avalara
- TaxJar
- Quaderno
If you want to do it manually
- Identify the customer’s taxable jurisdiction.
- Confirm whether the digital good/subscription is taxable there.
- Look up the applicable tax rate.
- Multiply the taxable price by the rate.
- Add tax to the invoice total.
- For recurring subscriptions, repeat each billing period.
If you want, I can also give you:
- a U.S. sales tax example
- an EU VAT example
- or a formula you can use in Excel / code