Tax for a freelance programmer
When almost all your clients are foreign businesses, what matters is invoicing correctly without VAT, being on the ROI (the EU VAT register) and not forgetting the modelo 130 (the quarterly income tax prepayment). And if you sell apps or subscriptions, the VAT of each customer's country.
In short
A programmer goes in section 2 of the IAE (the business activity tax): group 763 (programmers and analysts), 762 (computer engineers) or 764 (computing graduates). You invoice an EU or non-EU business without VAT; for the EU one you need to be on the ROI (Registro de Operadores Intracomunitarios) and file the 349 (EU transactions return).
Foreign clients don't withhold. If more than 30% of your income had no withholding the year before, you file the 130 every quarter: 20% of what you have earned so far in the year, minus what has already been withheld and paid.
The VAT depending on your client
| Customer | Invoice | Where it goes |
|---|---|---|
| Business in Spain | 21% VAT and 15% withholding (7% in your first years) | Modelo 303 (VAT return) |
| Business in another EU country with a valid EU VAT number (NIF-IVA) | No VAT, with «inversión del sujeto pasivo» (reverse charge) | Box 59 of the 303, and the 349 with key S |
| Business outside the EU (US, UK, Switzerland) | No VAT: not subject | Box 120 of the 303 |
In both no-VAT cases you still deduct the VAT on your expenses. To invoice an EU business without VAT you have to be registered on the Registro de Operadores Intracomunitarios (ROI), with modelo 036 (the census registration form), and check your client's EU VAT number in VIES (the EU's VAT number database). We explain it in the ROI and the VAT on what you pay abroad.
Apps, subscriptions and licences
- Subscriptions, apps and downloads for consumers: an electronically supplied service. With more than €10,000 a year of sales to consumers in other EU countries, in total and including distance sales of goods, the VAT of each customer's country applies, which you can declare from Spain through the One-Stop Shop (OSS, modelo 369).
- If you sell through an app store that takes payment from the customer, the store is deemed to supply the service to the consumer: you invoice the store, as a business-to-business transaction.
- Licences or data processing for a non-EU consumer: no Spanish VAT, unless they use it in Spain or live in the Canary Islands, Ceuta or Melilla. If the licence is delivered by download, it follows the rules for electronically supplied services.
The cloud services, software or AI you pay to businesses not established in Spain are self-assessed: you declare their VAT and deduct it on the same 303, and if the supplier is in the EU, they go on the 349 with key I.
What the Tax Agency looks at
- The ROI: the 2026 control plan says it will step up formal checks on those registered on it.
- What your clients report about you in their withholding summary (modelo 190), which the Tax Agency (Hacienda) cross-checks with what you declare.
- Losses year after year, one of the risk indicators in the 2026 tax control plan.
Three mistakes we see
- Charging Spanish VAT to an EU business, or invoicing it without VAT without being on the ROI.
- Not filing the 130 because nobody withholds from you, and then facing the whole year at once in your income tax return.
- Not self-assessing the VAT on the cloud services and software you pay for abroad.
Frequently asked questions
How do I invoice a client in the United States?
If it is a business, without VAT: it goes in box 120 of the 303 and you still deduct the VAT on your expenses. It doesn't withhold from you, so it counts towards the 130's 70% rule.
Do I need the ROI to invoice a business in Germany?
Yes. To invoice it without VAT you have to be on the ROI and check its EU VAT number in VIES; then you declare the invoice on the 349 with key S.
Do I have to file the modelo 130?
If less than 70% of your income had tax withheld the year before, yes, every quarter. With foreign clients, that's the norm.
I sell my app on an app store: do I charge each country's VAT?
If the store takes part in collecting payment, it is presumed to be the one supplying the service to the consumer. You invoice the store, as a business-to-business transaction.
Shall we look at your case?
This page covers the essentials for your profession. At DPL Asesores we handle the accounts and taxes of businesses like yours across Spain, remotely. Book a 15-minute call or write to us through the form.