Dr. Miller is a CPA specializing in U.S. tax law and investment tax strategy, ensuring the accurate modeling of capital gains tax liabilities.
The **Capital Gains Tax Calculator** helps investors estimate the profit and subsequent tax liability arising from the sale of an asset (such as stocks or real estate). This essential tax planning tool uses the relationship between Selling Price, Cost Basis, Capital Gain, and the Tax Rate. This versatile four-function solver allows you to determine the **Selling Price (S)**, the **Cost Basis (C)**, the **Capital Gain (G)**, or the resulting **Tax Liability (T)**. Simply input any three of the four required variables, plus the auxiliary tax rate, and the tool will solve for the missing one.
Capital Gains Tax Solver
Auxiliary Input
Capital Gains Tax Formulas
The calculation is governed by two identities: the definition of the Capital Gain (G) and the calculation of the Tax Liability (T). The tax rate (R) is required for T calculations.
Core Identity 1: Gain/Loss (G) = Selling Price – Cost Basis
Core Identity 2: Tax Liability (T) = Capital Gain $\times$ Tax Rate
$$ G = S - C $$
$$ T = G \cdot R $$
\text{Where R is the Tax Rate in decimal form (R\% / 100)}
\text{Solve for Selling Price (S): } $$ S = C + G $$
\text{Solve for Capital Gain (G): } $$ G = S - C $$ \text{ OR } $$ G = \frac{T}{R} $$
Formula Source: Investopedia: Capital Gains Tax
Variables
- S (Selling Price): The total revenue received from selling the asset. (In currency).
- C (Cost Basis): The original cost of the asset plus commissions and improvements. (In currency).
- G (Capital Gain / Loss): The difference between S and C. (In currency).
- T (Tax Liability): The amount of tax due on the Capital Gain (G). (In currency).
- R (Tax Rate, %): The applicable capital gains tax rate (must be supplied by user). (In percentage).
Related Investment & Tax Calculators
Analyze linked efficiency and solvency metrics for comprehensive financial health assessment:
What is Capital Gains Tax?
A capital gain is the profit realized when an investor sells a capital asset (like a stock, bond, or real estate) for a price higher than its original cost basis. The difference between the selling price (S) and the cost basis (C) is the Capital Gain (G). The Capital Gains Tax is the levy applied by a government on this profit. For capital losses (when S < C), the loss can often be used to offset gains.
In many tax systems, capital gains are categorized as either **short-term** (assets held for one year or less) or **long-term** (assets held for more than one year). Long-term capital gains are typically taxed at lower rates than short-term gains, which are usually taxed at the investor’s ordinary income tax rate. Proper tax planning requires accurately calculating the capital gain and the potential tax liability (T) before the sale is finalized.
How to Calculate Tax Liability (Example)
An investor sells an asset for $\$100,000$ (S) that had a Cost Basis (C) of $\$60,000$. The applicable long-term Capital Gains Tax Rate (R) is $15\%$. We solve for the Tax Liability (T).
-
Step 1: Calculate Capital Gain (G)
$$ G = S – C = \$100,000 – \$60,000 = \$40,000 $$
-
Step 2: Apply Tax Formula
$$ T = G \cdot R = \$40,000 \times 0.15 $$
-
Step 3: Determine Tax Liability (T)
The resulting Tax Liability is $\mathbf{\$6,000}$. The investor’s total cash profit after tax is $\$40,000 – \$6,000 = \$34,000$.
Frequently Asked Questions (FAQ)
Cost Basis is the original value of an asset for tax purposes. It includes the purchase price plus any commissions, fees, or capital improvements made to the asset. Accurately determining the cost basis is essential for calculating the correct capital gain.
A gain is **short-term** if the asset was held for one year or less, and it is typically taxed at the higher ordinary income tax rate. A gain is **long-term** if the asset was held for more than one year, and it usually qualifies for lower, preferential tax rates.
No, tax liability (T) cannot be negative. However, if the result is a **Capital Loss** (G < 0), the loss can be used to offset capital gains and may result in a zero or reduced tax liability. This tool focuses on calculating T for a gain (G > 0).
C and S represent monetary values of assets and transactions, which must be non-negative in this financial context. If $C$ or $S$ were negative, the resulting gain calculation would be based on an illogical financial scenario.