# AI Prompts to Estimate US Short-Term and Long-Term Capital Gains Tax

> source: https://promptsio.com/ai-prompts-capital-gains-tax-us/
> published: 2026-10-08T15:58:53+00:00
> updated: 2026-10-08T15:58:53+00:00
> topic: Tax &amp; Accounting

Use effective AI prompts to calculate and estimate US short-term and long-term capital gains tax on stocks, crypto, and real estate assets.

**Direct Answer:** Utilizing specialized AI prompts for US capital gains tax helps investors and tax professionals rapidly calculate estimated liabilities, differentiate between short-term and long-term holding periods, and model tax-loss harvesting strategies. By feeding structured financial parameters—such as asset cost basis, purchase and sale dates, tax filing status, and total ordinary income—into advanced large language models, you can receive clear, step-by-step estimates of your tax exposure. However, AI estimations must always be verified against official [IRS capital gains guidelines](https://www.irs.gov/taxtopics/tc409) or validated by a certified tax professional.

Calculating federal and state tax liabilities on investment profits can be notoriously tedious. Whether you traded equities, sold real estate, rebalanced a crypto portfolio, or offloaded a venture investment, determining how much you owe the Internal Revenue Service (IRS) requires precise tracking of holding periods and taxable income thresholds. Generative AI tools like ChatGPT, Claude, and Gemini have evolved into powerful computational assistants—provided you know how to prompt them correctly.

This comprehensive guide provides field-tested **AI prompts for capital gains tax US** calculations, breaking down how to estimate short-term and long-term capital gains, incorporate state-level taxes, factor in tax-loss netting, and optimize your overall tax strategy safely.

## Understanding US Capital Gains Tax: Short-Term vs. Long-Term

Before executing tax prompts, it is crucial to understand how the IRS categorizes investment profits. Capital gains are divided into two distinct categories based on your holding period:

- **Short-Term Capital Gains:** Assets held for **one year or less** before being sold. Short-term gains are taxed at your ordinary federal income tax rates (ranging from 10% to 37%).

- **Long-Term Capital Gains:** Assets held for **more than one year**. Long-term gains enjoy preferential tax treatment, with federal tax rates set at 0%, 15%, or 20% depending on your taxable income and filing status.

Additionally, high earners may be subject to the **Net Investment Income Tax (NIIT)**, an extra 3.8% surtax applied to certain investment returns if modified adjusted gross income (MAGI) exceeds specific thresholds ($200,000 for single filers; $250,000 for married couples filing jointly). State tax rules also vary widely, ranging from zero-tax states like Texas and Florida to high-tax states like California and New York, which tax capital gains as ordinary income.

## How to Construct Effective AI Prompts for Capital Gains

AI models excel at math and logical reasoning when given structured data, but fail when prompts are vague. To get high-accuracy tax estimations, your prompt must act as a structured brief. Always supply the following core data points when writing your prompt:

- **Filing Status:** Single, Married Filing Jointly, Married Filing Separately, or Head of Household.

- **Total Taxable Income:** Estimated ordinary income (W-2, 1099, business profit) without the capital gain.

- **Asset Class & Cost Basis:** Original purchase price plus allowable adjustments.

- **Acquisition & Sale Dates:** Exact dates to verify the 365-day holding boundary.

- **State of Residence:** To factor in state-level income and capital gains tax brackets.

## Copy-and-Use AI Prompts for Capital Gains Tax Estimation

### 1. Master Prompt for Estimating Short-Term and Long-Term Capital Gains Tax

Use this comprehensive prompt when you have made asset sales and want a breakdown of federal and state tax liabilities, along with an explanation of applied tax brackets.

```
Act as an expert US Certified Public Accountant (CPA) and tax consultant. I need you to estimate my federal and state capital gains tax liability for the current tax year.

Here are my financial details:
- Filing Status: [Insert Status, e.g., Married Filing Jointly]
- State of Residence: [Insert State, e.g., North Carolina]
- Total Household Ordinary Income (W-2/1099): $[Insert Amount, e.g., $145,000]

Asset Transaction Details:
- Transaction 1: Asset: [e.g., Stocks], Buy Date: [YYYY-MM-DD], Buy Price: $[Amount], Sell Date: [YYYY-MM-DD], Sell Price: $[Amount]
- Transaction 2: Asset: [e.g., Crypto], Buy Date: [YYYY-MM-DD], Buy Price: $[Amount], Sell Date: [YYYY-MM-DD], Sell Price: $[Amount]

Please perform the following step-by-step:
1. Determine whether each transaction is a Short-Term or Long-Term capital gain/loss.
2. Calculate the net capital gain or loss for each category.
3. Determine the marginal federal tax bracket applied to the short-term gains and the specific preferential bracket (0%, 15%, or 20%) applied to the long-term gains.
4. Check if the Net Investment Income Tax (NIIT) of 3.8% applies based on my income level.
5. Add estimated state capital gains tax based on my state's tax guidelines.
6. Provide a summarized table showing total profits, total tax owed, effective tax rate, and net profit after tax.
7. Include standard tax disclaimers emphasizing that this is an estimate.
```

### 2. Tax-Loss Harvesting and Capital Loss Netting Prompt

If you realized both winning and losing investments, the IRS requires you to net gains and losses in a specific sequence (short-term losses offset short-term gains first; long-term losses offset long-term gains first). This prompt helps you calculate offsets correctly.

```
Act as a corporate tax accountant specializing in portfolio tax optimization. Help me calculate my net capital gains after applying IRS capital loss netting rules and loss carryforwards.

Data Input:
- Short-Term Realized Gains: $[Insert Amount]
- Short-Term Realized Losses: $[Insert Amount]
- Long-Term Realized Gains: $[Insert Amount]
- Long-Term Realized Losses: $[Insert Amount]
- Unused Capital Loss Carryover from previous tax years: $[Insert Amount]
- Estimated Ordinary Income: $[Insert Amount]
- Tax Filing Status: [Insert Status]

Please run the full IRS tax-loss netting protocol:
1. Net short-term gains against short-term losses.
2. Net long-term gains against long-term losses.
3. Cross-net remaining short-term and long-term balances if applicable.
4. Apply prior year carryforward losses.
5. Calculate how much net loss (up to $3,000 max per year) can offset ordinary income, and how much remaining loss carries forward into future tax years.
6. Provide a step-by-step summary of the net taxable gain remaining in each bucket.
```

### 3. Real Estate and Section 121 Primary Residence Exemption Prompt

Selling real estate involves nuanced rules, such as primary residence exclusions under Section 121 of the Internal Revenue Code and depreciation recapture for rental properties.

```
You are a real estate tax advisor. I need to estimate the capital gains tax from selling a residential property.

Property Details:
- Property Type: [Primary Residence / Investment Property / Second Home]
- Original Purchase Price: $[Insert Amount]
- Capital Improvement Costs (Renovations, Roof, Additions): $[Insert Amount]
- Purchase Date: [YYYY-MM-DD]
- Sale Date: [YYYY-MM-DD]
- Gross Sale Price: $[Insert Amount]
- Selling Costs (Broker commissions, closing fees): $[Insert Amount]
- Total Accumulated Depreciation Claimed (if investment property): $[Insert Amount]
- Tax Filing Status: [Insert Status]
- Combined Annual Household Income: $[Insert Amount]

Please calculate:
1. Adjusted Cost Basis of the property.
2. Total Net Realized Capital Gain.
3. Eligibility for Section 121 Primary Residence Exclusion ($250,000 for single / $500,000 for married) based on the 2-out-of-5-year residency rule.
4. Depreciation Recapture Tax (if applicable, typically capped at 25%).
5. Estimated Federal and State capital gains tax due on any remaining taxable profit.
```

### 4. Wash Sale Rule Detection and Adjustments

Under IRS rules, if you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, you cannot claim the loss. Use this prompt to spot potential wash sale conflicts.

```
Act as a stock trader's tax compliance editor. Review the following trade history for potential IRS Wash Sale Rule violations and explain cost basis adjustments.

Trades List:
- Ticker Symbol: [Insert Symbol, e.g., NVDA]
- Trade 1: Date [YYYY-MM-DD], Sold [Qty] shares at $[Price] (Realized Loss: $[Amount])
- Trade 2: Date [YYYY-MM-DD], Purchased [Qty] shares at $[Price]

Instructions:
1. Identify if Trade 2 triggered a Wash Sale based on the 61-day window (30 days prior, day of sale, 30 days after).
2. If a wash sale occurred, explain how the disallowed loss affects the cost basis and holding period of the newly acquired shares.
3. Recalculate the adjusted cost basis for the open position.
```

## Comparison: Short-Term vs. Long-Term Capital Gains Tax Structure

Understanding how the tax treatment differs helps you structure your prompt parameters and interpret AI output accurately.

Tax Parameter
Short-Term Capital Gains
Long-Term Capital Gains

**Holding Period**
1 Year (365 Days) or Less
More than 1 Year (366+ Days)

**Federal Tax Rate**
Ordinary Income Rates (10% to 37%)
Preferential Rates (0%, 15%, or 20%)

**NIIT Surtax Exposure**
Yes (3.8% above threshold)
Yes (3.8% above threshold)

**State Tax Treatment**
Taxed as income in most states
Taxed as income in most states (few exceptions)

**Loss Netting Priority**
Offsets short-term gains first
Offsets long-term gains first

## Best Practices and Crucial Guardrails for Using Tax AI

While AI prompts streamline tax planning, generative engines are inference tools, not certified tax software or human CPAs. Follow these essential best practices to maximize accuracy:

- **Cross-Check Tax Bracket Years:** AI models occasionally reference tax tables from previous years. Explicitly instruct the AI in your prompt to use current year federal tax brackets published on official resources like the [IRS website](https://www.irs.gov).

- **Protect Personal Identifiable Information (PII):** Never upload Social Security Numbers, brokerage account numbers, or full names to public AI platforms. Sanitize all transaction data before prompting.

- **Verify Holding Period Calculations:** Leap years, trade settlement dates (T+1), and exact execution timestamps can alter whether a trade qualifies as long-term. Ensure the AI accounts for exact date math.

- **Use Detailed Prompting (Chain of Thought):** Prompting the AI to "think step-by-step" forces the model to show intermediate calculations, making mathematical or rule-based errors much easier to spot.

## Frequently Asked Questions

### Can ChatGPT or Claude calculate my exact capital gains tax?

AI models can provide precise mathematical estimations based on current IRS tax brackets if given complete and accurate data. However, they cannot replace official tax preparation software or CPAs, as they do not possess real-time integration with IRS databases and may miss specialized local tax nuances.

### How does the IRS determine if a capital gain is short-term or long-term?

The holding period is measured beginning on the day after you acquire the asset and ending on the day you sell it. If your holding period is 365 days or less, it is treated as a short-term capital gain; if it is 366 days or longer, it qualifies for long-term capital gains tax rates.

### Are crypto gains treated as short-term or long-term capital gains in the US?

Yes, the IRS classifies digital assets and cryptocurrencies as property. Swapping, selling, or spending crypto triggers capital gains taxes subject to the exact same short-term and long-term rules applied to stocks and real estate.

### What is the Net Investment Income Tax (NIIT) and how does AI prompt for it?

The Net Investment Income Tax is an additional 3.8% federal surtax that applies to net investment income for individuals whose modified adjusted gross income exceeds threshold amounts ($200,000 for single filers and $250,000 for married couples filing jointly). Including your total MAGI in your AI prompt allows the model to correctly calculate whether NIIT applies to your capital gains.

### How much capital loss can I deduct against my regular paycheck income?

If your capital losses exceed your total capital gains for the year, you can use up to $3,000 ($1,500 if married filing separately) of net capital losses to offset ordinary income on your tax return. Any remaining unabsorbed capital losses can be carried forward indefinitely to future tax years.

## Conclusion

Mastering **AI prompts for capital gains tax US** estimation transforms complex investment management into an intuitive, automated process. By structuring prompts with complete date bounds, filing statuses, state parameters, and ordinary income levels, you can stress-test tax outcomes, evaluate long-term holding incentives, and model loss-harvesting opportunities in seconds. Use the prompt templates above to streamline your tax scenario planning, and always review your final projections with a licensed tax advisor prior to filing.

---
Published by Promptsio. Canonical version: https://promptsio.com/ai-prompts-capital-gains-tax-us/
