How Investment Gains Are Actually Taxed in 5 Spanish-Speaking Countries
Most guides to investment taxation assume one system and hope it's close enough to yours. It usually isn't. We build tax calculators for five Spanish-speaking countries, and one thing became obvious while researching the investment gains tool: these five countries don't share a tax model. They don't even share a type of tax model. One uses progressive brackets. One uses a flat rate. One exempts most everyday trades outright. One splits the calculation depending on how long you held the asset.
If you're an investor moving between these markets — or just trying to understand what you actually owe — here's how each one really works, sourced from each country's official tax authority.
Spain: progressive brackets, and a retention that isn't the final word
Spain taxes investment gains through the base imponible del ahorro (savings tax base), using five progressive brackets that run from 19% up to 30% on gains above €300,000. This is confirmed directly against the Agencia Tributaria's (AEAT) official gravamen table — worth noting, because at least one popular Spanish calculator currently online has this wrong, showing 28% instead of 27% for the €200,000–€300,000 bracket.
Here's the part that trips people up: the mechanics differ depending on what you sold.
- Mutual funds (fondos de inversión): the bank automatically withholds 19% of the gain the moment you redeem. This isn't the final tax — it's an advance payment, adjusted up or down when you file your annual return based on your real bracket.
- Stocks and ETFs: there's no withholding at all. Nothing is deducted at the point of sale. The full tax is calculated and paid only when you file, based on the progressive brackets.
Spain also has an anti-abuse rule that catches people off guard: if you sell a listed security at a loss and buy back the same security (same ISIN) within two months, you can't use that loss to offset gains. The two-month window applies uniformly to anything traded on an official market — stocks, ETFs, listed funds — with no distinction between asset types, despite what some calculators claim. For unlisted securities, the window extends to one year.
Losses can be carried forward for four years if they exceed the gains available to offset them in a given year.
Mexico: a flat 10%, full stop
Mexico's approach is the simplest of the five, and it isn't a variation of Spain's — it's a completely different structure. There are no brackets. Gains from selling stocks, ETFs and equity mutual funds (not debt funds, which are taxed as interest under a separate mechanism) are taxed at a flat 10%, according to the Servicio de Administración Tributaria (SAT).
There's no withholding either. Unlike Spain's fund mechanism, nothing is deducted automatically when you sell — you calculate and declare the 10% yourself in your annual filing.
Loss compensation works differently too: losses can be carried forward for up to ten years (versus four in Spain), adjusted for inflation — but there's a catch that makes this less generous than it sounds. If you don't apply the loss in the first fiscal year it becomes available, you lose the right to use it at all. It's a longer window with a stricter rule attached.
Mexico has no FIFO requirement and no anti-abuse "wash sale" style rule — neither concept exists in the applicable tax code.
Argentina: exemption is the default outcome, not the exception
Argentina's model is built around exemption rather than a rate. For most retail investors, the everyday result is zero tax — and that's not a corner case, it's the expected outcome for typical trading.
Publicly traded Argentine stocks and CEDEARs (the local instrument for holding foreign shares) are exempt from the impuesto cedular, per Article 26 subsection u) of the income tax law and confirmed against ARCA (Agencia de Recaudación y Control Aduanero — the agency that replaced AFIP in 2024). The main exception: if a single sale represents 3% or more of a company's outstanding shares, the exemption doesn't apply. For a normal retail trade, that threshold is essentially never reached — which is worth stating plainly rather than leaving people to wonder if they're missing something.
Where tax does apply — mainly certain mutual funds (FCI) outside the exempt category — the cedular tax is either 5% (for pesos without inflation adjustment) or 15% (for holdings with CER clauses or in foreign currency). Which rate applies depends on the fund's actual composition, so a calculator that assumes one or the other by default would be guessing. We ask the question instead of assuming the answer.
Argentina does apply FIFO for determining which lot was sold when you've bought the same asset at different times — unlike Mexico. Losses can be carried forward five years, adjusted by IPIM (Argentina's wholesale price index), and gains/losses from Argentine-source and foreign-source assets are kept separate for compensation purposes — a distinction that doesn't exist in any of the other four countries.
Colombia: a two-question decision tree, and the strictest loss rule of the five
Colombia's model has more branches than the other four, and each branch corresponds to a real, distinct rule — not added complexity for its own sake.
First question: what did you sell? A share traded on the Colombian stock exchange, a foreign share/ETF, or a fondo de inversión colectiva (FIC)?
Second question, only for Colombian-listed shares: did the sale represent 3% or more of the company's outstanding shares? If not — which, again, covers essentially every retail transaction — the sale is exempt. Same principle as Argentina: exemption is the normal case, not an edge case.
If the exemption doesn't apply (foreign asset, FIC, or over the 3% threshold), a third factor decides the tax treatment: how long you held it.
- Held two years or more: taxed as a ganancia ocasional at a flat 15%.
- Held less than two years: taxed as ordinary income at Colombia's progressive marginal rate (roughly 19%–39%), per DIAN's official brackets.
We deliberately don't calculate a specific figure for that last case. Your marginal rate depends on your total annual income, which a standalone investment calculator doesn't have — and we're not going to guess. We show the range and link directly to DIAN's official rate table instead of inventing a number that might be wrong for your actual situation.
Colombia is also the strictest of the five on loss carryforward: there is none. Losses not offset within the same fiscal year are simply lost — no carryforward to future years, unlike Spain, Mexico or Argentina. And instead of FIFO, Colombia uses weighted average cost (costo promedio ponderado) to determine your cost basis, same approach as Mexico.
Chile: a binary rule, and a tax that used to not exist
Chile's model doesn't branch on asset type or holding period like the other four — it hinges on a single distinction: "presencia bursátil" (market presence). Does the asset trade on the Chilean stock exchange, or — for funds — does it hold at least 90% of its portfolio in instruments with market presence and publicly-offered debt? If yes, one tax path applies. If not, a different one does.
With market presence: gains are taxed at a flat 10%, per the Servicio de Impuestos Internos (SII). There's no automatic withholding for residents — you self-declare and pay through Chile's annual tax return (Formulario 22), the same self-liquidation pattern seen with stocks in Spain and the full tax in Mexico.
Worth flagging: this 10% is relatively recent. Gains on instruments with market presence were fully exempt before 2022 — a reform ended that exemption. And as of this writing, there's a bill in the legislature that could partially restore the earlier exemption; nothing is confirmed, and no date has been set, but it's the kind of thing worth knowing about if you're researching this further.
Without market presence (foreign assets, anything not listed in Chile, or a fund that doesn't reach the 90% threshold): there's no flat rate. These gains fold into the Impuesto Global Complementario, Chile's general progressive income tax, which tops out at 40%. We don't publish a two-number range here the way we do for Colombia's ordinary-income case — we verified the top of Chile's scale but not the first non-zero bracket with the same confidence, so rather than guess at a lower bound, we point directly to the SII's own table.
Loss compensation in Chile has one field, not two. Spain, Mexico and Argentina all separate "losses from this year" from "losses carried forward from previous years" because each of those countries states an explicit time limit. Chile's tax authority doesn't specify one — which is different from confirming losses can be carried forward indefinitely. We show one combined field and say so plainly, rather than implying a guarantee the source doesn't make.
One place Chile is more flexible than its neighbors: cost basis method. Mexico and Colombia require weighted average cost. Chile lets you choose between FIFO and LIFO — an option none of the other four countries offer.
Why none of this is interchangeable
Lay the five side by side and a pattern shows up: no two of these countries share the same underlying logic. Spain is bracket-based with a withholding quirk specific to funds. Mexico is a flat rate with no withholding at all. Argentina is exemption-first, with a dual rate for the taxable minority. Colombia branches on both a percentage threshold and a holding period, with the strictest loss rule of the group. And Chile hinges on a single binary distinction — market presence — that doesn't exist anywhere else in the group, paired with a flat rate that didn't even apply before 2022.

