Capital gains taxes generally are not automatically “taken out” at closing on a real estate sale the way transfer taxes or a mortgage payoff are; the seller normally pays the gain through estimated tax payments or the annual return, though a closing can still produce a withholding or estimated-payment event in specific situations, and a few transactions do involve mandatory withholding at closing. The word “taken out” hides two different mechanisms: a settlement agent deducting money from sale proceeds versus the IRS collecting tax through withholding or estimated payments. Those are not the same, and confusing them is the main source of wrong answers.

The question also has no stated jurisdiction, property type, seller status or year. For a U.S. federal income tax answer, the principle is stable: the closing statement reports the sale, but it does not ordinarily compute or remit capital gains tax for the seller. State rules, foreign-seller rules and business-entity sales can change the picture. Income tax law changes, so confirm rates, thresholds and forms against the IRS and the applicable state for the year of sale.

What “taken out at closing” actually means

At a residential closing, the settlement agent (a title company, escrow officer or attorney, depending on the state) prepares a closing disclosure or settlement statement. It lists the sale price, seller credits, commissions, loan payoff, prorated property taxes, transfer taxes and similar items. The seller’s net proceeds are the sale price minus those deductions. Federal capital gains tax is ordinarily not one of those deductions.

The reason is structural. The closing agent’s job is to transfer title and disburse funds according to the contract and lender instructions; it is not to prepare the seller’s income tax return or determine the seller’s basis. Basis requires the original purchase price, capital improvements, depreciation taken, selling costs and any adjustments across the entire ownership period. A closing agent does not have that history, and the gain may be reduced or eliminated by the principal-residence exclusion, a like-kind exchange, an installment sale or a loss. So there is nothing reliable to “take out” at the table.

By contrast, some charges are withheld at closing because a statute or contract requires the settlement agent to collect them: transfer taxes, recording fees, the real estate commission, loan payoffs, and in some states a separate real estate withholding amount. Those are collected for reasons unrelated to computing the seller’s federal income tax.

The federal rule for most home sellers

For federal income tax, a sale of property is reported on the seller’s return for the year of sale. For a primary residence, a qualifying seller can exclude up to $250,000 of gain ($500,000 for a married couple filing jointly who both meet the ownership and use tests) under Internal Revenue Code Section 121. When the gain is fully excluded, there is no capital gains tax to pay at all, so nothing would be “taken out” at closing in any sense.

When there is a taxable gain, the seller typically handles it through:

Estimated tax payments during the year, using Form 1040-ES, if the sale creates a large gain and the seller expects to owe tax; Increased withholding from wages or other income, using a revised Form W-4; or Payment with the annual return, possibly with an underpayment penalty if too little was paid during the year.

The annual return reports the sale on Form 8949 and Schedule D, and the tax is computed there. The closing statement is evidence, not the tax computation.

A concrete illustration: a single filer sells a primary residence for $600,000, bought years earlier for $350,000, with $30,000 of selling costs and $40,000 of qualifying improvements. Realized gain is roughly $600,000 − $350,000 − $30,000 − $40,000 = $180,000, which is under the $250,000 exclusion, so no federal capital gains tax is due and nothing is withheld at closing for it. If the same seller had a $400,000 gain, $250,000 might be excluded and roughly $150,000 would be taxable; the seller would ordinarily address that through estimated payments or the return, not through a closing-table deduction.

Situations where money is withheld at closing

Several real situations do produce withholding or a tax-related deduction at closing, and they are the exceptions that make the general answer incomplete.

Foreign sellers. Under the Foreign Investment in Real Property Tax Act (FIRPTA), a buyer generally must withhold a percentage of the gross sales price when the seller is a foreign person. The buyer or closing agent remits it to the IRS, and the seller can later claim a refund or credit by filing the appropriate return. This is withholding at closing, but it is a prepayment against the seller’s tax, not a final capital gains computation.

State real estate withholding. Some states require withholding on certain sales, often for nonresidents or sellers without a state filing history. California, for example, has a real estate withholding regime for sellers of California property in specified circumstances, with exemptions and reduced withholding in some cases. New York and other states have their own rules for nonresident sellers. These are state-specific, and a seller should not generalize from one state’s practice to another.

Installment sales and buyer withholding. In an installment sale, the seller reports gain as payments are received, and the buyer may have withholding obligations in some structures. The closing does not collect the full tax; it sets up a payment stream.

Business entities and payroll-like withholding. A sale by an entity can trigger different reporting and withholding rules, but entity-level tax is generally handled outside the settlement statement.

Escrow holdbacks for tax disputes. Occasionally a contract or a tax authority requires a holdback from proceeds to cover a contested tax liability. That is a contractual or administrative arrangement, not the routine operation of capital gains tax.

Notice what these have in common: the withholding exists because a specific rule requires the payer or closing agent to collect it. Absent such a rule, the settlement agent does not withhold federal capital gains tax on an ordinary sale.

Why sellers sometimes think tax was taken out

Three sources of confusion are common.

First, the closing statement shows large deductions, and sellers may mentally lump them together. A $40,000 commission, a transfer tax, a loan payoff and prorated taxes can make the “amount taken out” look like tax even though none of it is income tax.

Second, some states collect a transfer tax or a real estate excise tax at closing. Washington’s real estate excise tax and similar state charges are transaction taxes on the transfer, not the seller’s capital gains tax. They are collected at closing because the statute says so, and they are deductible selling costs for federal purposes in many cases, but they are a different tax.

Third, withholding regimes like FIRPTA and state nonresident withholding are real, and a seller who has encountered one may assume it is universal. It is not; it depends on the seller’s status and the property’s location.

What the seller should actually do

The practical sequence is to gather basis records before closing, not after: the original purchase price, closing costs from the purchase, receipts for capital improvements, records of any depreciation if the property was rented, and the final closing statement from the sale. Then determine whether an exclusion, a loss, an installment arrangement or a withholding rule applies. If a large taxable gain is expected, adjust estimated payments or withholding during the year so the annual return does not produce an underpayment penalty.

The seller should also ask the settlement agent, in writing, whether any withholding is required for this transaction — federal, state or local — and whether the seller’s status (foreign person, nonresident of the state, entity) triggers it. That question is answerable before closing; the general federal capital gains computation is not something the closing agent will do for the seller.

Where the answer stops applying

The answer above is a U.S. federal income tax answer for an ordinary sale by an individual seller. It does not establish the rule for a sale in another country, where withholding at closing may be routine or mandatory. It does not resolve state income tax, which varies and can include its own withholding and estimated-payment rules. It does not cover entity sales, partnership distributions, trust sales, like-kind exchanges or sales of property held primarily for sale to customers, each of which has its own reporting and timing rules. And because tax rates, exclusion amounts, withholding percentages and forms can change, the specific figures and form numbers should be checked for the year of sale rather than assumed from an earlier year.

In short: on a typical home sale, capital gains tax is not deducted at closing; the seller pays it through estimated taxes or the annual return, and mandatory withholding at closing appears only when a specific rule — such as FIRPTA or a state nonresident withholding statute — requires it.