Home-Sale Capital-Gains Exclusion (§121)
Realized gain, $250k / $500k IRC §121 exclusion, and taxable gain. Two-of-five-year and non-qualified-use flags.
Formula and source
amount_realized = sale_price - selling_costs. adjusted_basis = purchase_price + capital_improvements. realized_gain = amount_realized - adjusted_basis. exclusion = min(realized_gain, cap) when the two-of-five test is met. cap = $250,000 single / $500,000 MFJ. taxable_gain = max(0, realized_gain - exclusion).
26 USC 121 (Internal Revenue Code §121). Cap last amended by TRA-1997; non-qualified-use reduction added by HERA-2008 (effective 2009).
Audience
This tile is built for trades and the adjacent professions in the Real Estate group. The interactive calculator runs entirely in your browser. No account, no fee, no advertising, no tracking.
Related tools
Posture
Rough Logic answers the math question the working professional asks on the job. The site is a calm, fast, ad-free, account-free, ever-free reference. It does not interpret code. It does not replace the licensed professional. It does not store your inputs. The Authority Having Jurisdiction governs all installations and inspections.