...
Hero illustration showing Form 5471 documents, E&P records, a closing calendar, and foreign tax planning for selling Costa Rica real estate held in a foreign corporation.

Selling Costa Rica Real Estate Held in a Corporation: Form 5471, Foreign Tax Credits, and U.S. Gain Reporting

Selling Costa Rica real estate held in an S.A. or S.R.L. is really one of two U.S. tax events: the company sells the property, or the owner sells the shares. Each path carries different gain, foreign tax credit, and Form 5471 consequences, and section 1248 can recharacterize share sale gain as dividend income.

“The buyer wants to purchase my S.A. instead of the villa to skip transfer costs. What does that mean for my U.S. taxes?”

“We are selling the lot the company owns. Does the gain go on my return or the company’s?”

“Costa Rica will tax the sale. Do I at least get credit for that in the U.S.?”

The First Question: Are You Selling Real Estate or Foreign Corporation Stock?

Selling the property and selling the company are different U.S. tax events. A share sale may be a foreign corporation stock sale with possible section 1248 dividend recharacterization. An asset sale inside the company raises corporate level tax, distributions, previously taxed earnings and profits, and basis questions.

In Costa Rica, both deals happen under the same roof. Some buyers purchase the lot or villa from the S.A. Others purchase the S.A. itself, taking the property with the entity, often to avoid local transfer steps.

The legal form of the transaction controls the U.S. analysis. Costa Rican counsel will document either version cleanly; only the U.S. treatment differs, and it differs a lot. Answer this question before pricing, before the purchase agreement, and long before closing.

When the Costa Rican Company Sells the Property

In an asset sale, the company disposes of the real estate. Any gain belongs to the entity first, and Costa Rican tax at the company level enters the picture.

For the U.S. owner, that gain does not simply appear on a personal return. It flows through CFC and classification analysis, and how it reaches the shareholder depends on whether and how cash comes out of the company.

If the property produced rent along the way, the entity’s income history feeds this analysis too. Our guide to Costa Rica rental property inside a foreign corporation explains why those years must be reconciled before the sale year can be reported correctly.

When You Sell the Shares of the Costa Rican Company

In a share sale, the U.S. owner may be selling foreign corporation stock, not real estate. The buyer takes the company, and the seller reports a stock disposition.

Here section 1248 can recharacterize part of the gain as dividend income to the extent of the corporation’s earnings and profits when the ownership and CFC conditions are met. Capital gain treatment is not automatic.

The recharacterization math depends on E&P records that many property companies never kept. That gap tends to be discovered at exactly the wrong moment: after the price is agreed.

Asset Sale vs. Share Sale: The Fork That Decides Everything

The table below shows how the two paths separate before a single number is calculated.

FactorCompany Sells the Property (Asset Sale)You Sell the Shares (Share Sale)
What is legally soldThe real estate, by the Costa Rican companyStock or quotas of a foreign corporation
Where the gain lands firstInside the entity; U.S. treatment follows CFC and classification analysisWith the U.S. shareholder directly
Section 1248 exposureNot the direct issue in this pathGain may be recharacterized as dividend to the extent of earnings and profits
Getting the cash outRequires a distribution or liquidation, with E&P and PTEP analysisProceeds arrive directly, but basis must be proven
Local tax coordinationCompany level Costa Rican tax may not match the individual’s U.S. creditLocal transfer treatment may not match the U.S. character of the gain
MeasurementTwo potential layers: corporate level gain plus a taxed distributionOne layer, but section 1248 can convert capital gain to dividend to the extent of E&P; unfiled Form 5471 history still carries $10,000 per form, per year

The Numbers That Frame a Corporate Sale

  • 2: the number of different transactions a Costa Rica sale can actually be, an asset sale or a share sale.
  • 1248: the code section that can turn share sale gain into dividend income to the extent of earnings and profits.
  • $10,000: the per form, per year exposure under IRC 6038(b) that a sale event often surfaces for unfiled years.
  • More than 50%: the U.S. ownership level that can make the company a CFC, which controls how company level gain reaches the shareholder.
  • 3: the foreign tax credit mismatches, taxpayer, income category, and timing, that decide whether Costa Rican tax offsets the U.S. bill.
  • Day one: how far back E&P and basis records may need to reach before the sale numbers can be proven.

Foreign Tax Credit Coordination

Costa Rican taxes on the transaction do not automatically line up with the U.S. bill. The same three mismatches that complicate rental files apply here at larger dollar amounts: taxpayer, income category, and year.

In an asset sale, the company may pay the local tax while the individual owes the U.S. tax. In a share sale, the local transfer treatment may not match the U.S. character of the gain, especially after section 1248 does its work.

Credit coordination is a design question, not a filing season question. Timing deserves special attention on installment style deals, where the local tax, the closing, and the U.S. recognition can land in three different years. The transaction structure decides how much of the local tax is usable.

Selling Costa Rica Real Estate Held in a Corporation | Form 5471 & U.S. Gain Reporting

Liquidation or Distribution of the Sale Proceeds

After an asset sale, the cash sits inside the company. Getting it out is a second event: a distribution or a liquidation, each with its own analysis. The sequencing matters too, because the same dollars can be cheap or expensive depending on which step happens first.

Whether that cash arrives as a dividend, a return of basis, or something already taxed depends on the E&P history and the previously taxed earnings and profits rules. Amounts taxed once should not be taxed twice, but only the records can prove which dollars those are.

Owners who plan to dissolve the S.A. after closing are running a restructure on top of a sale. Restructuring a Costa Rica holding company covers why that step deserves its own review before the paperwork is signed.

What the Buyer’s Side Will Ask

Share deals come with due diligence. The buyer’s counsel will ask for the corporate books, the shareholder ledger, the Form 5471 history, and proof that the entity’s tax record is clean on both sides of the border.

Unresolved filing history becomes price leverage. A seller who cannot produce the record negotiates from behind, and escrow holdbacks for tax exposure are a common result.

Sellers can flip that dynamic. A file that arrives complete, with a classification memo, the ledger, E&P workpapers, and filed forms, closes faster and defends its price. Preparation is leverage on both sides of the table.

Common Double Tax Traps

  • Signing the purchase agreement before deciding whether the deal is an asset sale or a share sale for U.S. purposes.
  • Assuming Costa Rican tax on the sale automatically offsets the U.S. bill.
  • Distributing the sale proceeds with no E&P or PTEP analysis, inviting a second layer of tax.
  • Proving basis from memory: wires, improvements, and contributions with no labels. Sellers who inherited their shares layer a valuation date question on top, covered in inherited Costa Rica real estate in a corporation.
  • Ignoring the entity’s unfiled Form 5471 history until the buyer’s counsel asks for it.
  • Liquidating the company right after closing as an afterthought instead of a planned step.
edparsonscpa

When to Get CPA Review: Before Closing, Not After

Pre-sale review is usually easier than post-sale cleanup. Before closing, the structure can still be chosen, the records can still be assembled, and the credit coordination can still be designed. After closing, every answer is archaeology.

A pre-closing review at Ed Parsons CPA covers the fork between asset and share sale, the entity’s Form 5471 history, E&P and basis reconstruction, section 1248 exposure, and how the proceeds should leave the company.

If a sale is on the calendar, start with a dedicated Form 5471 CPA filing engagement, reach the team through the contact page before the purchase agreement locks the structure in place.

Related Posts

Find Your Answer with my ai Search:

Related Posts

Yes, I can Meet In
I am Available to Represent You in