How to invoice a foreign company from Spain as a self-employed contractor

A practical guide for self-employed professionals and contractors in Spain who invoice foreign clients or companies, covering tax residence, VAT, withholding, currency, international payments and cash-flow planning.

Working with clients outside Spain is no longer unusual or limited to the tech sector. Designers, copywriters, architects, consultants, trainers, marketing professionals, audiovisual specialists, and business operators increasingly invoice companies in other countries while remaining based in Spain. The problem is that many guides oversimplify the issue into a dangerously incomplete message: “if the client is foreign, you do not pay tax in Spain.” Taken literally, that idea can cause serious mistakes.

The practical reality is different. If your activity is organised from Spain and your tax residence is in Spain, you will usually continue to have obligations with the Spanish tax authorities and the Spanish social security system, even if your clients pay from Germany, the United States, the United Kingdom, Colombia, or the Netherlands. What changes is not that the Spanish framework disappears, but how the transaction should be classified and documented correctly.

How to invoice a foreign company from Spain as a self-employed contractor

In this guide, you will see how to think about an international invoice without oversimplifying it: what changes when the paying company is abroad, how VAT and withholding fit depending on the scenario, what evidence it makes sense to keep, how to estimate your real net income when you are paid in another currency, and when it stops being sensible to improvise and it becomes worth reviewing a tax treaty, permanent establishment risk, or specialist advice.

What changes when your client or company is outside Spain

The first thing that changes is the map of obligations, not necessarily the substance of your obligations in Spain. If you are self-employed and your tax residence is in Spain, the fact that your client is in another country does not by itself eliminate your registration, your monthly social security contribution, your personal income tax filings, or your general reporting and record-keeping obligations. In other words, the location of the client does not replace the location of your tax residence.

It also changes the way you need to read the commercial relationship. When you invoice a Spanish company, many parts of the process are familiar: invoice in euros, a more predictable VAT treatment, possible personal income tax withholding on the invoice in some situations, and payment into a local bank account. When your client is abroad, extra questions appear: whether the client is a business or an individual, whether it is acting as a taxable business for VAT purposes, whether it has a valid EU VAT number, in which country the service is deemed supplied, in what currency you will be paid, who bears payment fees, what exchange rate you will use, and what supporting documents the client may ask for to comply in its own jurisdiction.

It is not the same thing to have a foreign client as to invoice a properly identified foreign business

It helps to distinguish between “a client from abroad” and a recipient that is clearly identified for tax purposes. Invoicing a German company with a valid VAT number, registered address, and commercial agreement is not the same as invoicing a private individual living in France, a US startup with no clear operating entity, or a British company that pays you through an intermediary platform. The invoice may look similar, but the tax analysis is not.

It is also not the same to provide recurring services as an external contractor as it is to accept a one-off creative or consulting project. If you work continuously for a single foreign client, the discussion stops being just about “how to issue the invoice” and starts to include economic dependence, contracting conditions, rate negotiation, contractual protection, and the comparison between working as self-employed and working as an employee. That comparison matters because a high monthly rate does not always compensate for social security contributions, unpaid holidays, lack of severance, sick leave risk, and the cost of your own equipment and tools.

International work changes how you analyse the offer, not just the invoice

Take two very common scenarios. In the first, a Spanish company offers you EUR 42,000 gross per year as an employee. In the second, a foreign company offers you EUR 3,800 per month as a self-employed consultant. At first glance, EUR 3,800 per month may look more attractive. But as a self-employed professional, you will need to cover your own social security contribution, taxes, holidays, project gaps, equipment, accounting support, and possible exchange-rate or payment volatility. If the foreign client does not apply withholding, the money may arrive “clean” into your account, but that does not mean it is free cash available to spend. It is turnover that still needs to be provisioned.

That distinction is essential if you want to avoid making decisions based on a false sense of salary. An international contractor can invoice more and still end up with less real margin than expected after setting aside personal income tax, social security contributions, software, travel, insurance, and slower months. For that reason, if you are comparing an employment offer with a freelance arrangement, do not look only at the invoice amount. Look at the full cost of operating as a one-person business.

When the company is abroad, the contract discussion also changes. It is sensible to review governing law, payment terms, reimbursable expenses, intellectual property, confidentiality, invoicing currency, and dispute resolution. A poorly drafted international contract is not fixed by a correct invoice. If the client pays on 45- or 60-day terms, that affects your cash flow as much as a difference in headline rate.

How to think about VAT, withholding, and proof of tax residence without oversimplifying

This is where many mistakes happen. The question “does the invoice include VAT?” cannot be answered by looking only at the client’s country. For international services, you usually need to look at at least who the recipient is, whether the recipient is acting as a business or as a private individual, what type of service you provide, and whether the service falls under a general rule or a special rule. Spanish VAT law contains place-of-supply rules that distinguish between B2B and B2C scenarios and also sets out special rules for services connected to real estate, events, catering, transport, or electronic services.

The general rule that many freelancers use as a starting point is often useful, but it is not universal: in many B2B services, if the recipient is a business or professional acting as such and is established outside the territory where Spanish VAT applies, the transaction may not be located in Spain under article 69 of Law 37/1992. That does not mean “there is no VAT anywhere” in the abstract. It means the VAT treatment may shift outside Spain and, in some cases, operate through reverse charge or under the customer’s local rules. If the recipient is a private individual, or if your service falls into a special rule under article 70, the conclusion can change significantly.

Common VAT scenarios that should be separated

One very common case is that of a Spain-based freelancer providing consulting, design, programming, strategy, translation, or similar professional services to a company in another EU country that is acting as a business and can be properly identified as such. In that scenario, the service is often analysed as a B2B supply not located in Spain, but it is not enough to simply assume that the client is a business. It makes sense to verify its business status, tax details, and the supporting documents that justify why you have issued the invoice in a particular way.

A different scenario is services supplied to private individuals. If you provide non-regulated training, creative services, advisory work, or certain digital services to final consumers outside Spain, you should not automatically assume the same treatment you would use for a business client. And if your activity relates to real estate, fairs, tickets, live events, or electronic services, special rules may shift the analysis. That is why it is usually better to think in terms of classifying the transaction than hunting for a one-line answer.

Withholding also causes confusion. In domestic Spanish invoicing, many self-employed professionals include personal income tax withholding on invoices when applicable, and the payer deposits that withholding with the Spanish tax authorities. With foreign clients, that often does not work in the same way. In many relationships with non-resident companies, the normal outcome is that they pay the full invoice amount under the contract and you are the one who needs to reserve funds for your Spanish personal income tax. But again, there is no universal rule. Some countries may apply withholding at source for certain services or ask you for proof of tax residence in order to apply the relevant double tax treaty.

Tax residence: getting paid from abroad does not take you out of Spain

If you live in Spain, spend more than 183 days there, or have your main centre of economic interests there, Spain may treat you as tax resident. Article 9 of the Spanish Personal Income Tax Law remains the basic reference point and should be taken seriously. Tax residence is not something you freely choose just because your client is foreign or because your money is paid into a foreign account. If your personal and economic life is based in Spain, the prudent starting point is that Spain continues to be the centre of your tax obligations unless there are strong facts and evidence pointing elsewhere.

This matters especially for people moving to Spain, teleworking for companies abroad, or splitting time between multiple countries. If you are considering a move or have only recently arrived, understanding tax residence is as important as understanding the contract itself. For people analysing special tax regimes, it is worth reviewing the Beckham Law guide in Spain carefully, because that regime can change how certain income is taxed, but it does not magically make an activity exempt and it does not by itself solve every VAT or cross-border self-employment issue.

What proof usually makes sense to keep

In international transactions, the invoice on its own is rarely enough. It has evidential value, but it does not by itself explain where the customer is, whether the customer is acting as a business, what exact service you provided, when the work started, under what contract, and on what basis you decided not to charge Spanish VAT or to accept withholding in another country. That is why it is sensible to keep the contract, purchase order, acceptance emails, proof of the customer’s business activity, tax certificates when available, payment evidence, and any document that helps show the nature of the service.

If the client or its finance department asks you for a Spanish tax residence certificate, do not treat that as unusual. In cross-border transactions it is a very logical document to request in order to prove where you are taxed and to apply, when appropriate, a double tax treaty or a reduced rate of withholding at source. Proof of tax residence is not something you want to improvise the day before payment; if the contract already points in that direction, it is better to anticipate it.

What role currency, international payments, and documentation play

Once you start working with foreign clients, the payment mechanics stop being a minor admin detail and become part of your margin. It is not the same to invoice USD 4,000 with high banking fees and a poor exchange rate as it is to invoice EUR 4,000 through a low-cost SEPA transfer. Currency, payment method, and fee allocation can change your monthly profitability without the client ever changing the nominal rate.

International payments also add operational friction. Some clients pay only by international wire transfer, some insist on specific platforms, and others process payments in monthly batches with limited flexibility. If you do not set out in the contract who bears bank fees, what happens with exchange-rate differences, and which payment deadline applies, you may discover too late that your real rate was several points lower than you thought.

The offer currency can distort your perception of net income

An offer of USD 5,000 per month may sound better than EUR 4,300, but before deciding you should translate it into operational reality. Ask yourself what exchange rate you will use for planning, how much the currency may move, whether your bank applies an additional spread, and what happens if the client pays late in a month with an adverse exchange movement. Volatility is not always dramatic, but when your margin is tight it can turn a good rate into a mediocre one.

That is why conservative projections make sense. A practical approach is to budget your international income using a prudent exchange rate, not the best one seen that month. If you are comparing self-employed international work with local employment or a move to Spain, a useful reference is to cross-check your numbers against a related calculator so you can understand what a payroll salary really leaves you with compared with the amount you need to reserve when invoicing on your own account. Visible estimate: a calculator can help you compare scenarios, but it does not replace personalised tax analysis or a review of the VAT, treaty, or social security treatment that applies to your case.

How to draft and support the invoice more effectively

The documentation behind an international invoice usually needs to be more robust than that of a straightforward local transaction. The invoice should clearly identify who you are, who the client is, what service was provided, the relevant dates, the currency, the payment method, and, where relevant, a tax reference or note that matches the treatment applied. The point is not to overload the invoice with legal wording by habit, but to ensure that what the invoice says matches the underlying reality of the transaction.

It also helps to keep a clean trail linking the contract, deliverables, invoice, and payment. If you bill by milestones, by hours, or through a monthly retainer, keep timesheets, approvals, acceptance records, or confirmation emails. If there is ever a future review, the best defence for an international transaction is often the consistency between what you did, what you agreed, what you invoiced, and what you were paid.

A documentation checklist that usually adds peace of mind

If you work with several countries at once, this kind of documentary discipline stops being a luxury and becomes part of running the business. It does not just help if the Spanish tax authorities ever ask questions. It also protects you against clients who challenge amounts, try to pay less because of exchange-rate differences, or delay payment due to missing internal paperwork.

How to provision social security, taxes, and expenses when you are paid from abroad

Many of the real problems for internationally focused freelancers do not come from invoicing too little, but from confusing money received with money available to spend. When a foreign client pays you without Spanish withholding, your bank balance can create a false sense of liquidity. That money already has a destination: self-employed social security contributions, personal income tax, VAT where relevant in other operations, accounting support, tools, insurance, equipment, training, travel, and a buffer for periods with less work.

Provisioning properly means treating yourself like a business rather than like a payroll employee. If you do not separate money from the moment it arrives, the quarterly filings and annual tax return can become an unpleasant surprise. This happens often to creative and consulting professionals moving from employment into international freelance work: turnover rises, but because the cash comes in gross, it is spent as if it were net salary. Over time, that pattern usually leads to cash-flow stress.

A practical way to split each payment

There is no universal percentage because it depends on your deductible expenses, autonomous community, income level, social security base, and business structure. Even so, there is a prudent logic: split each payment into buckets. One bucket for social security and fixed business costs, one for taxes, one for variable operating expenses, and one for your real spendable income. If your income fluctuates month by month, that discipline matters more than memorising a single percentage.

For example, imagine a Spain-based self-employed professional invoicing EUR 4,500 per month to a company in the Netherlands for strategy and content services. If that person sets aside part of the money immediately for social security, another part for estimated personal income tax, and another part for business costs, they will quickly see that their actual available income may look much less like EUR 4,500 than they first assumed. If they also invoice in dollars or pounds, it makes sense to build in a modest safety margin for exchange-rate movements and fees.

Comparative example of an international offer

Item Scenario A: employee in Spain Scenario B: self-employed with foreign client
Reference gross monthly income EUR 3,200 on payroll EUR 4,500 invoiced
Withholding and social security Deducted through payroll You must provision them yourself
Holidays and public holidays Usually paid Not invoiced unless agreed
Month without a project Lower risk if you have employment status Your cash flow absorbs the risk
Tools and accounting support Often paid by the employer Usually come out of your own margin

The table is not meant to say that one model is always better than the other. What it shows is that an international rate must be analysed as a full business model. If you are calculating the real cost of settling in Spain while working for clients abroad, it can also help to review the guide on moving to Spain: tax, visas, and cost of living, because housing, insurance, transport, and local tax exposure directly affect the minimum amount you need to invoice for the arrangement to make sense.

LatAm, relocation, and real margin

This point is especially important for professionals arriving from Latin America with existing foreign clients. Sometimes the income looks strong when compared with the country of origin, but becomes much thinner once self-employed social security contributions, rent, Spanish taxation, and local living costs are factored in. If you are relocating from Colombia or thinking about that move, the guide on moving from Colombia to work in Spain can help you ground the comparison more realistically, because one of the most common mistakes is projecting a previous cost structure onto a completely different tax and living environment.

Provisioning is not pessimism. It is what turns an international relationship into a sustainable business. If each payment is split from the start and you review your percentages every few months, you can make calmer decisions: raising rates, declining clients who pay late, adjusting your social security contribution level where relevant, setting money aside for holidays, and avoiding a situation where a good international contract becomes unworkable because of poor financial discipline.

When it makes sense to review a tax treaty, permanent establishment risk, or specialist advice

There comes a point where relying on a template invoice and a quick internet answer stops being prudent. That point usually appears when several countries may have taxing rights, when the client is talking about withholding at source, when you physically move between jurisdictions, or when the working structure starts to look more like a stable business presence than a simple remote service provided from Spain.

Double tax treaties exist to organise conflicts between countries, but they do not operate like an automatic pass. You need to look at what type of income is being earned, who the tax resident is, whether there is a permanent establishment, what taxing power each state has, and which relief mechanism applies to avoid double taxation. In some situations, a tax residence certificate and a technical review are enough. In others, the answer depends on operational details that the contract alone does not solve.

Signs that the treaty really matters

If your foreign client wants to withhold part of your invoice in its own country, if it asks you for specific forms to avoid withholding, if you work part of the time from its office, or if you have recurring income from several countries, you are already in the zone where a treaty review is worth considering. The same applies if you change tax residence halfway through a project, if you receive royalties in addition to service income, or if you combine self-employment with employment or corporate participation in another jurisdiction.

Another clear warning sign is that the client does not engage you merely as an independent service provider, but expects you to close contracts on its behalf, manage local teams, or maintain a stable physical presence in another country. That is where permanent establishment risk begins to appear. It is not a concept to panic about, but it is a concept that should make you understand that a cross-border activity can generate obligations outside Spain even if you remain self-employed in Spain.

When to think about permanent establishment

In simple terms, the risk grows when you stop looking like an independent provider working from Spain and start looking like an operational extension of the foreign business in another territory. A fixed place of business, an ongoing physical presence with resources abroad, a long-running project site, or effective authority to conclude contracts can change the tax picture substantially. Spanish VAT rules themselves use the concept of permanent establishment for the localisation of certain transactions, and international tax treaties also analyse it from the direct-tax perspective.

That does not mean travelling to see a client or spending a few weeks abroad automatically creates a permanent establishment. It means that if the operating model becomes structural, the analysis should no longer be based on instinct. In consulting, architecture, audiovisual production, engineering, international sales, or project management roles, that line can arrive sooner than many people expect.

When paying for specialist advice is actually cheap

Specialist advice is usually worth it when the cost of getting it wrong is clearly higher than the cost of reviewing the setup properly. If you invoice modest amounts to a single EU client with a simple structure, a solid setup and orderly compliance may be enough. But if you are dealing with multiple countries, changing residence, charging in several currencies, receiving payments with foreign withholding, or combining digital services, training, licences, and in-person work, a technical review can save far more than it costs.

It is also wise to get that advice before you move, not after. If you are planning a relocation to Spain, considering a special regime, working as a digital nomad, or switching from employee to international contractor, the right tax decision is usually made before you sign, not after you have already issued several invoices. The useful question is not just “can I invoice a foreign company from Spain?” because in broad terms the answer will often be yes. The useful question is “how should I structure and document it so that it fits my Spanish tax residence, my type of service, my country of payment, and my broader life plans?”

The practical conclusion is this: getting paid from abroad can be a very good option, but it does not make you outside the reach of Spanish tax and compliance rules. If your tax residence is in Spain, start there. Then classify the transaction correctly, verify whether the customer is acting as a business or as a private individual, review whether the service falls under the general rule or a special one, keep your documentation in order, provision like a business, and escalate to specialist review whenever withholding, treaty questions, significant travel, or permanent establishment risk appear. That sequence does not promise shortcuts, but it does help you make a realistic and sustainable decision.

For practical planning, it also helps to connect this question with the wider relocation and work-structure decisions around Spain. If you are considering whether self-employment is better than local employment, whether a special inbound tax regime could apply, or what your true monthly take-home might look like after taxes and contributions, the broader context matters. That is why guides on relocation, tax residence, and employment structure are not separate topics from international invoicing. They are part of the same decision-making framework.

In that sense, three comparisons usually matter more than people expect. The first is employee versus self-employed, because the gross numbers can look similar while the real protections, tax timing, and cash-flow risks are completely different. The second is resident versus recently arrived, because moving to Spain can alter your tax treatment and your administrative obligations faster than expected. The third is local pricing versus international pricing, because a rate that looks attractive in another country may not leave enough real margin once Spanish living costs, social security, and tax provisioning are included.

That is especially relevant for digital nomads, independent professionals, and cross-border contractors who think mainly in terms of mobility and client acquisition. Mobility may broaden your client pool, but it does not remove the need to classify your activity properly. Spain may still be the place where you register, pay social security, file taxes, and prove residence. If your work is borderless but your life is based in Spain, your compliance usually needs to be built from that reality rather than from the nationality of the client.

It is also worth remembering that not every international arrangement produces the same risk level. A single recurring B2B service to a well-identified EU company with clear documentation is one thing. A mixed portfolio of clients in the EU, UK, US, and Latin America, paid in different currencies through different intermediaries, with occasional travel and local presence, is another. Both may be viable, but the second case generally needs a stronger process, better record-keeping, and more technical review.

If you want to stay conservative without becoming paralysed, a useful approach is to work through the issue in layers. First, confirm where you are tax resident and where your self-employed activity is genuinely managed. Second, classify the client and the service for VAT purposes without making assumptions. Third, check whether withholding at source, treaty benefits, or proof of residence may be relevant. Fourth, structure payments, exchange-rate assumptions, and provisioning so that your cash flow remains stable even if payments are late or fees increase. Fifth, review whether the way you work could create obligations outside Spain through physical presence or permanent establishment concerns.

That layered approach is often more valuable than chasing a universal answer. Cross-border freelancing is full of cases where the headline rule is broadly true but the detail changes the result. For example, many professionals have heard that B2B services to foreign companies are often invoiced without Spanish VAT. As a broad starting point, that may be directionally useful. But whether it applies in your case depends on the service, the client’s status, the country involved, the documents you hold, and whether a special rule overrides the general one. The difference between “often” and “always” is exactly where expensive errors tend to appear.

The same is true for the idea that foreign clients never withhold. In many situations they may simply pay your invoice in full. In others, especially outside the standard EU B2B pattern, they may ask for forms, tax IDs, residency proof, or treaty documentation before paying. If you are not ready for that, invoices can be delayed, funds can be withheld unnecessarily, or you can end up accepting an unfavourable treatment just to get paid on time.

For self-employed professionals in Spain, the best operating principle is usually this: treat foreign invoicing as a Spanish business activity with international variables, not as a separate tax universe. That mindset helps you avoid two common mistakes at once. The first is assuming that everything stays exactly the same as a domestic invoice. The second is assuming that because the client is abroad, Spanish obligations disappear. Neither extreme is reliable.

Used properly, international invoicing can absolutely be compatible with a stable and efficient self-employed setup in Spain. It can support better pricing, more diversified clients, and a stronger professional profile. But the benefits are strongest when the structure is clean: tax residence understood, VAT analysis documented, withholding risk anticipated, payment mechanics negotiated, and cash reserved before it is spent. That is what turns “working for clients abroad” from a vague opportunity into a business model that can survive over time.

To see your net salary in Spain, use our calculator. Open calculator