๐Ÿ“– Guides

IBKR Tax Lots: FIFO, LIFO & Specific ID Guide (2026)

โš ๏ธ Disclosure: Some links on this page are affiliate links. If you sign up through them, I may earn a commission โ€” at no extra cost to you. I only review tools I actually use.
# IBKR Tax Lots: FIFO, LIFO & Specific ID Guide (2026)

> About this guide: I'm Lawrence, the writer behind supa.is. Between February and May 2026 I've published 150+ articles on supa.is across crypto and brokerage tooling โ€” including 30+ Interactive Brokers-specific guides (recent examples: IBKR Tax Planner: How to Estimate Capital Gains Tax in PortfolioAnalyst, IBKR Account Setup: Missed Steps & First Trade Guide, IBKR Python API 2026: Build a Live Trading System). The most-repeated reader question across that IBKR archive is exactly how to configure tax lot accounting methods (FIFO vs LIFO vs Specific ID), which is why I'm publishing this standardized guide instead of answering one-off.

> Disclosure: This article contains affiliate links. We may earn a commission at no extra cost to you if you open an account through our links.

> Note: Steps below are reconstructed from official docs. Verify each step against the current UI before relying on it.

When you sell a stock or cryptocurrency you've held for a while, the taxman doesn't just care about the sale price. They care about your cost basis. If you bought 100 shares of Apple at $150, another 100 at $180, and another 100 at $200, which of those shares did you actually sell when you execute a trade for 100 shares at $210? The answer determines whether you pay short-term capital gains (taxed as ordinary income) or long-term capital gains (taxed at a lower rate).

Interactive Brokers (IBKR) lets you pick which shares get sold first using three methods: FIFO (First-In, First-Out), LIFO (Last-In, First-Out), and Specific Identification (Specific ID). Picking the wrong one can cost you thousands in unnecessary taxes.

In this guide, we'll break down exactly how each method works, how to set it up in your IBKR account, and the strategic implications of each choice for 2026.

What Are Tax Lots?

A tax lot is a specific batch of securities purchased on a specific date at a specific price. Every time you buy a stock, you create a new tax lot. When you sell, you must assign which tax lot is being sold.

The IRS requires you to use a consistent accounting method for each security, though you can choose different methods for different stocks. Once you establish a method for a particular stock, you generally have to stick with it unless you get IRS approval to change it.

Method 1: FIFO (First-In, First-Out)

FIFO is the default method for most retail traders and the default setting for Interactive Brokers. Under FIFO, the shares you bought earliest are the ones you sell first.

How FIFO Works

Imagine you bought Bitcoin on three different dates:

On July 1, you sell 0.1 BTC at $70,000. Under FIFO, the IRS assumes you sold the January 1 lot. Your profit is $70,000 - $40,000 = $30,000.

Why use FIFO?

The catch

Method 2: LIFO (Last-In, First-Out)

LIFO is the exact opposite of FIFO. The shares you bought most recently are sold first.

๐Ÿ’ก Interactive Brokers

Like what you're reading? Try it yourself โ€” this link supports ChartedTrader at no cost to you.

Open an IBKR Account โ†’

How LIFO Works

Using the same Bitcoin example:

On July 1, you sell 0.1 BTC at $70,000. Under LIFO, the IRS assumes you sold the May 1 lot. Your profit is $70,000 - $60,000 = $10,000.

Why use LIFO?

The catch

Method 3: Specific Identification (Specific ID)

Specific ID is the gold standard for tax-efficient trading. It allows you to manually select exactly which tax lot you want to sell at the time of the trade.

How Specific ID Works

Using the same Bitcoin example:

On July 1, you sell 0.1 BTC at $70,000. Under Specific ID, you can choose to sell the March 1 lot. Your profit is $70,000 - $50,000 = $20,000.

Why use Specific ID?

The catch

How to Set Up Tax Lot Accounting in Interactive Brokers

Setting up your preferred tax lot accounting method in IBKR is straightforward, but the steps vary slightly depending on whether you are using TWS (Trader Workstation) or IBKR Desktop.

Setting Up in TWS (Trader Workstation)

1. Open the Order Ticket: When you are ready to place a sell order, click on the asset you want to sell.

2. Navigate to the Tax Lot Tab: In the order ticket, look for the "Tax Lot" or "Accounting" tab. It is usually located near the bottom of the ticket. 3. Select Your Method: - For FIFO or LIFO, simply select the corresponding radio button. - For Specific ID, select the "Specific ID" radio button. A list of your available tax lots will appear, showing the date, price, and quantity of each lot. 4. Assign the Lot: If using Specific ID, click on the specific tax lot you want to sell. If you are selling a quantity that spans multiple lots, you can assign quantities to each lot manually. 5. Submit the Order: Once your tax lot is assigned, you can proceed with the order as normal.

Setting Up in IBKR Desktop

1. Open the Trade Tab: Click on the "Trade" tab and search for the asset you want to sell.

2. Click Sell: Enter the quantity you want to sell. 3. Look for the Tax Lot Selector: Before you confirm the order, look for a dropdown or button labeled "Tax Lot" or "Accounting Method." 4. Choose Your Method: Select FIFO, LIFO, or Specific ID. If Specific ID is selected, you will see a list of your available lots to choose from. 5. Confirm and Submit: Complete the order.

Important Note on Default Settings

While you can choose a different method for each individual trade, IBKR allows you to set a default accounting method for your account. However, this default is usually just a fallback. If you want to use Specific ID, you must manually select it for every trade. If you forget, the system will default to FIFO (or whatever your backup method is).

Strategic Implications: Which Method Should You Choose?

The "best" method depends entirely on your trading style, your tax bracket, and the current market environment.

Choose FIFO If:

Choose LIFO If:

Choose Specific ID If:

Common Pitfalls with IBKR Tax Lots

Even experienced traders make mistakes when dealing with tax lots. Here are the most common pitfalls to avoid:

1. Forgetting to Select Specific ID

If you intend to use Specific ID but forget to select it in the order ticket, IBKR will default to FIFO. This can result in a much higher tax bill than you anticipated. Always double-check your order ticket before submitting.

2. Mixing Up Short-Term and Long-Term Gains

If you sell shares that have been held for less than a year, they are classified as short-term capital gains. If you sell shares held for more than a year, they are long-term capital gains. Specific ID allows you to control this, but FIFO and LIFO do not.

3. Ignoring Wash Sale Rules

If you sell a stock at a loss and buy it back within 30 days, the IRS disallows the loss under the wash sale rule. Specific ID can help you avoid this by allowing you to sell shares that are not at a loss, or by ensuring you don't accidentally trigger a wash sale.

4. Not Tracking Your Tax Lots

IBKR provides excellent reporting tools, but it's still your responsibility to track your tax lots. At the end of the year, you will need to provide this information to your tax preparer. Make sure you are comfortable with the IBKR Tax Planner: How to Estimate Capital Gains Tax in PortfolioAnalyst before tax season hits.

FAQ

Can I change my tax lot accounting method after I've already sold shares?

Generally, no. Once you have established a method for a particular security, you must stick with it unless you get IRS approval to change it. It's best to decide on your method before you start trading.

Does IBKR automatically calculate my taxes?

IBKR provides detailed tax reports and tools like the PortfolioAnalyst, but they do not calculate your exact tax liability. You will need to use this information to file your taxes, potentially with the help of a tax professional.

Is Specific ID available for all account types?

Specific ID is available for most US-based brokerage accounts. If you are using an IBKR account in another jurisdiction, the availability of Specific ID may vary. Check with your local tax regulations and IBKR support.

What happens if I sell more shares than I have in a single tax lot?

If you are using Specific ID, you can assign quantities from multiple tax lots to a single order. For example, if you want to sell 150 shares and you have two lots of 100 shares each, you can assign 100 shares from the first lot and 50 shares from the second lot.

Can I use different methods for different stocks?

Yes, you can use different tax lot accounting methods for different securities. For example, you could use FIFO for your long-term holdings and Specific ID for your actively traded stocks.

Risk Warning

> Risk Warning: Trading stocks and cryptocurrencies involves substantial risk of loss. Tax laws are complex and subject to change. This guide is for informational purposes only and does not constitute financial or tax advice. Always consult with a qualified tax professional before making investment decisions.

If you're ready to start managing your tax lots strategically, Open an IBKR Account today.

๐Ÿงฎ Free IBKR calculator

IBKR Margin Calculator โ†’
Reg-T initial / maintenance / margin call price + IBKR Pro interest cost
Interactive Brokers

Ready to get started? Use the link below โ€” it helps support ChartedTrader at no cost to you.

Open an IBKR Account โ†’
๐Ÿ“ˆ

About the author

I'm a systematic trader running live strategies on IB (USDJPY momentum) and Hyperliquid (crypto perps). Every tool reviewed here is something I've used with real capital. Questions? Reach out.

๐Ÿ“š Related Articles

๐Ÿ“–
Guides

TradingView Symbol Mapping & Broker Suffixes (2026)

TradingView symbol mapping and broker suffixes explained. Learn how to fix missing symbols, resolve order routing errors, and correctly map your charts to OKX and IBKR.

July 3, 2026 โฑ 8 min read
๐Ÿ“–
Guides

TradingView Drawing Templates: Save & Apply Across Charts

Learn how to save and apply TradingView drawing templates across charts. Speed up your charting workflow by reusing custom templates for support/resistance, trendlines, and indicators instantly.

July 3, 2026 โฑ 10 min read
๐Ÿ“–
Guides

IBKR Currency Conversion: Settled Cash vs Buying Power

Why does your buying power drop after converting currencies on Interactive Brokers? We break down FX spreads, cross-currency margin haircuts, and how to optimize your IBKR account.

July 3, 2026 โฑ 11 min read

๐Ÿ“ฌ Get weekly trading insights

Real trades, honest reviews, no fluff. One email per week.