Costa Rica Capital Gains Tax When Selling Your Nosara Property: The Complete 2026 Guide
15% or 2.25%? How Costa Rica capital gains tax works when selling Nosara real estate — rates, non-resident withholding, deductions, and exit strategies.
If you own property in Nosara and are thinking about selling — or simply want to understand your exit strategy before you buy — capital gains tax is one of the most misunderstood pieces of the puzzle.
Costa Rica introduced a formal capital gains tax in 2019, and the rules have evolved since then. Foreign owners face a slightly different process than residents, and properties acquired before July 2019 come with a special transitional option that could save you significant money at closing. Getting this right requires understanding the law, doing the math for your specific situation, and working with a qualified Costa Rican tax attorney before you list.
This guide breaks down exactly how capital gains tax works when selling Nosara real estate in 2026: the rates, who pays what, how the withholding mechanism works for non-residents, what you can deduct, and the strategies worth exploring before you close.
Background: When Did Costa Rica Start Taxing Capital Gains?
For most of the country's modern history, Costa Rica had no capital gains tax on real estate. Sellers could walk away from a profitable sale without owing anything beyond transfer taxes and closing costs. That changed with Law 9635 (Strengthening of Public Finances), which took effect on July 1, 2019.
The law created a 15% capital gains tax on the net profit from asset sales, including real estate. It also included a transitional provision specifically for properties purchased before the law came into effect — a rule that still matters significantly for many Nosara property owners today.
Understanding when you bought your property relative to July 1, 2019 is the first question you need to answer.
The Two Capital Gains Tax Scenarios in Costa Rica
Scenario 1: Property Purchased After July 1, 2019
If you bought your Nosara property on or after July 1, 2019, the rules are straightforward:
- Tax rate: 15% on the net capital gain
- Tax base: Sale price minus original purchase price (plus allowable costs — more on this below)
- No options: You pay 15% on the gain, period
Example: You purchased a home in Playa Guiones in 2022 for $450,000. You sell in 2026 for $600,000. Your net gain is $150,000. Capital gains tax owed: $22,500.
Scenario 2: Property Purchased Before July 1, 2019
If you acquired your property before the capital gains law took effect, you have a one-time election at closing. You can choose whichever option results in a lower tax bill:
Option A — 15% of the net gain (same as post-2019 properties)
Option B — 2.25% of the total gross sale price (flat rate, no deduction for purchase cost)
This transitional option was designed to recognize that many long-term owners had no basis for expecting a capital gains tax when they purchased, and that calculating the "true" cost basis on a 15- or 20-year-old property can be complex.
Example — when Option B wins: You bought a lot in Garza in 2010 for $80,000. It's now worth $500,000. Your net gain is $420,000.
- Option A: 15% × $420,000 = $63,000
- Option B: 2.25% × $500,000 = $11,250
Option B saves you over $50,000. The math heavily favors Option B for long-held, highly appreciated properties.
Example — when Option A wins: You bought a condo in Playa Pelada in 2018 for $300,000. You're selling for $370,000. Your net gain is $70,000.
- Option A: 15% × $70,000 = $10,500
- Option B: 2.25% × $370,000 = $8,325
Option B still wins here, but by less. For properties with modest appreciation, the calculation is tighter and the choice matters less.
Important: This transitional election applies only to the first sale of each pre-2019 asset. Once exercised, the option is gone. The election is made at closing and cannot be changed after the fact. This is exactly why you want your tax attorney involved before the sale agreement is signed.
Special Rule: Your Primary Residence Is Exempt
If the property you are selling is your primary residence in Costa Rica, the capital gains on the sale are exempt from tax.
To qualify, you must have:
- Spent at least 183 days per year in Costa Rica (establishing residency)
- Been using the property as your personal home — not renting it out
For most foreign investors who own vacation rental properties in Nosara and live elsewhere most of the year, this exemption does not apply. If you are a full-time resident who has lived in your Nosara home as your primary residence, speak with a tax attorney about documenting your eligibility before you list.
How the Tax Is Collected: The Non-Resident Withholding Mechanism
This is where Nosara property sales get operationally interesting for foreign owners.
If You Are a Costa Rica Tax Resident
You file and pay your capital gains tax directly to the Dirección General de Tributación (DGT) — Costa Rica's tax authority — through the TRIBU-CR online platform. The payment is due after closing.
If You Are a Non-Resident (Most Foreign Buyers Apply Here)
Non-residents are subject to a 2.5% withholding tax collected at closing. Here's how it works:
- The buyer becomes the withholding agent. Under Costa Rican law, when a non-resident sells property, the buyer is legally required to withhold 2.5% of the total sale price from the funds paid to the seller.
- The notary manages the process. At closing, your notary public verifies residency status and ensures the 2.5% is set aside.
- The buyer files Form 129. Using the TRIBU-CR platform, the buyer (or their attorney) submits the Capital Gains Withholding Form – Non-Resident (Form 129), which was formalized by Resolution MH-DGT-RES-0051-2025.
- The withheld amount is credited. The 2.5% is treated as an advance payment against your actual tax liability — not as a final tax.
What Happens if 2.5% Is More Than You Actually Owe?
This is a real scenario. If your actual capital gains tax calculation works out to less than 2.5% of the sale price, you are entitled to file for a refund from the Costa Rican tax authority. This process takes time and requires documentation, but the refund is legitimate.
Practical example: You're a non-resident selling a pre-2019 property. Sale price: $600,000. Withholding: $15,000 (2.5%). But your Option B election would be: 2.25% × $600,000 = $13,500. You'd be entitled to a $1,500 refund.
The gap is small in this case, but on larger transactions the difference can be meaningful.
Note: If the buyer is also a non-resident or a foreign entity, the withholding obligation still applies but the mechanics may differ. Your closing attorney needs to address this specifically.
What Can You Deduct from the Capital Gain?
For properties subject to the standard 15% rate (post-2019 purchases, or pre-2019 owners choosing Option A), the taxable gain is the net gain after allowable deductions. Documented costs that can reduce your taxable base include:
- Original purchase price — as shown on the registered deed
- Transfer taxes and legal fees paid at purchase — the costs you paid to acquire the property
- Major capital improvements — structural additions, renovations, new construction on the land, documented infrastructure upgrades
- Depreciation claimed on rental income — this reduces your cost basis (depreciation you claimed as a deduction against rental income lowers the basis you can use at sale)
What you generally cannot deduct:
- Routine maintenance and repairs
- Property management fees paid during ownership
- Annual property taxes (impuesto territorial)
- Marketing or listing fees for the sale itself (these may be deductible in some circumstances — ask your attorney)
Documentation is everything. If you plan to deduct capital improvements, you need receipts, permits, and contractor records. In Costa Rica's often cash-based construction economy, this is frequently where sellers discover they cannot prove the improvements they know they made. Keep records from day one.
Capital Gains Tax When Selling a Corporation-Owned Property
Many properties in Nosara are held inside a Costa Rican corporation (SA or SRL) rather than in an individual's name. If your property is held this way, the capital gains treatment depends on what exactly is being sold:
Option A: Selling the Real Property (Asset Sale)
The corporation sells the property itself. Capital gains tax applies at the corporate level — the same 15% rate (or transitional options if applicable). The corporation pays the tax before distributing proceeds to shareholders.
Option B: Selling the Shares of the Corporation (Share Sale)
You transfer the shares of the company that owns the property, rather than the property itself. The buyer acquires the entire legal entity.
- Capital gains on the share transfer may be treated differently from gains on real property — this area of law has been evolving
- Share sales can be faster and have lower transfer costs (no transfer taxes, reduced notary fees)
- However, share sales expose the buyer to the corporation's full legal and tax history, which is why buyers increasingly do extensive due diligence on the company — not just the property
This is a complex area. Whether to structure your exit as an asset sale or a share sale depends on your tax situation, the buyer's preferences, and both parties' legal exposure. Get qualified advice specific to your structure before listing.
Transfer Tax: Do Not Confuse It with Capital Gains Tax
Costa Rica also charges a 1.5% transfer tax (Impuesto de Traspaso) on all property transactions, based on the registered value or sale price, whichever is higher. This is paid at closing and is separate from capital gains tax.
By convention in Nosara, transfer tax and legal fees are typically split equally between buyer and seller — though this is negotiable and should be addressed in your purchase agreement.
| Tax / Fee | Rate | Who Typically Pays |
|---|---|---|
| Capital gains tax | 15% of net gain (or 2.25% of price for pre-2019) | Seller |
| Non-resident withholding | 2.5% of sale price (advance on CGT) | Withheld by buyer |
| Transfer tax (Impuesto de Traspaso) | 1.5% of registered/sale value | Split buyer/seller |
| Notary/legal fees | ~1.25% of transaction | Split buyer/seller |
| National Registry fee | ~0.5% | Split buyer/seller |
Practical Tax Planning Strategies for Nosara Property Owners
1. Calculate Both Options Early
If you own a pre-2019 property, run the numbers on Option A vs. Option B before you set your asking price. The choice affects your net proceeds and may influence your negotiating position.
2. Document Capital Improvements Now
Gather permits, receipts, and contracts for any improvements you have made. If you cannot document it, you likely cannot deduct it. For properties held for many years, reconstructing this paper trail retroactively is difficult.
3. Consider Residency Status
If you are close to qualifying for Costa Rica residency (183 days per year) and plan to use the property as your primary home, the primary residence exemption may be relevant. This requires genuine residency — not just administrative status.
4. Understand the Depreciation Clawback
If you have been reporting rental income in Costa Rica and claiming depreciation on the property, that depreciation reduces your cost basis at sale, increasing your taxable gain. Plan for this interaction before you sell.
5. Time Your Exit Around Other Income
Capital gains in Costa Rica are taxed as a separate category — they do not stack with ordinary income for individuals (unlike the US, where gains can push you into higher brackets). This makes the timing strategy different, though you should still model the full picture including your home country's tax treatment.
6. Account for US (or Canadian) Tax Obligations
Selling foreign property does not exempt you from US or Canadian tax obligations. US citizens and permanent residents must report the gain on their US tax return. A foreign tax credit may be available for taxes paid to Costa Rica, reducing (but potentially not eliminating) your US liability. This area requires a cross-border tax specialist — a Costa Rican attorney alone is not sufficient.
What the Numbers Look Like for a Typical Nosara Sale
Here are three realistic scenarios to illustrate the full cost picture:
Scenario: Pre-2019 Vacation Rental, Sold After Strong Appreciation
| Item | Amount |
|---|---|
| Original purchase price (2015) | $250,000 |
| Sale price | $700,000 |
| Net gain | $450,000 |
| Option A (15% of gain) | $67,500 |
| Option B (2.25% of sale price) | $15,750 |
| Transfer tax (seller's half) | ~$5,250 |
| Legal/notary (seller's half) | ~$4,375 |
| Estimated total seller costs | ~$25,375 |
| Net proceeds | ~$674,625 |
Option B saves this seller over $50,000 versus Option A.
Scenario: Post-2019 Purchase, Modest Gain
| Item | Amount |
|---|---|
| Original purchase price (2021) | $400,000 |
| Sale price | $530,000 |
| Net gain | $130,000 |
| Capital gains tax (15%) | $19,500 |
| Transfer tax (seller's half) | ~$3,975 |
| Legal/notary (seller's half) | ~$3,313 |
| Estimated total seller costs | ~$26,788 |
| Net proceeds | ~$503,212 |
Scenario: Non-Resident Seller, Pre-2019 Property
| Item | Amount |
|---|---|
| Sale price | $500,000 |
| Buyer withholds at closing (2.5%) | $12,500 |
| Actual tax owed (Option B: 2.25%) | $11,250 |
| Potential refund from DGT | $1,250 |
The withheld amount slightly exceeds actual liability — a refund claim is appropriate.
Working with the Right Professionals
Capital gains tax in Costa Rica is not a DIY exercise. For Nosara property sales, you need:
A Costa Rican real estate attorney (notary public) Handles the closing, manages the withholding process, files required forms with Hacienda, and ensures the transaction is properly registered. This is not optional — real estate closings in Costa Rica must go through a notary public.
A Costa Rican tax accountant (contador público) If you have been filing rental income returns, they will have your depreciation records and cost basis documentation. They can run the Option A vs. Option B calculation and advise on the most advantageous approach.
A cross-border tax advisor (for US/Canadian/European sellers) Your home-country tax obligations do not disappear because the property is in Costa Rica. A specialist who understands both jurisdictions ensures you are not double-paying and properly reporting the sale.
Key Takeaways
- Costa Rica's capital gains tax is 15% of net gain for properties purchased after July 1, 2019
- Properties purchased before July 1, 2019 offer a one-time election: pay 15% of the gain OR 2.25% of the total sale price — whichever is lower
- Non-residents are subject to 2.5% withholding at closing, collected by the buyer and remitted via Form 129 on TRIBU-CR
- The primary residence exemption applies only to full-time residents using the property as their main home — not to vacation rentals
- Capital improvements can reduce your taxable gain, but only if you have documentation
- Corporation-owned property adds complexity — asset sale vs. share sale has different tax implications
- US and Canadian sellers must also account for home-country tax obligations
Understanding your exit costs before you buy is part of investing intelligently in Nosara. If you are ready to explore available properties, browse current listings or learn more about specific areas in our neighborhood guides.
For a full picture of buying and owning property in Nosara, see our comprehensive buyer's guide. You may also want to review our posts on Costa Rica property taxes for foreign buyers, closing costs, and using a corporation to hold property.
This article is for informational purposes only and does not constitute legal or tax advice. Laws change and individual circumstances vary. Always consult a qualified Costa Rican attorney and tax professional before making decisions about your property sale.