Black FridayHalf off a year of Pro
Answers

IBKR Cost Basis Price vs Average Price and P/L

IBKR's Flex Open Positions reference gives Open Price and Cost Basis Price identical wording, though cost basis nets commissions and tracks tax lots. Trading-screen average prices can diverge after partial sales or credits.

Cost Basis Price (Flex)Lot cost per share, fees nettedCost Basis Money divided by shares
Open Price (Flex)Open position priceSame reference text as Cost Basis Price
FIFO Unrealized PNL (Flex)Position Value minus cost basisShifts if you change lot method
Tax OptimizerAccount and same-day lot matchP&L in base; prices in trade currency
TradesClosed P&L with fees nettedMark-to-Market lists fees separately

Checked Not affiliated with Interactive Brokers.

Check your lot method and open lots

  1. 1.In Client Portal, open Performance & Reports > Tax Documents (or Menu > Reporting > Tax Documents) to view Account Match Method in Tax Optimizer.
  2. 2.Checking requires no change; only press Save Changes before logging out to switch defaults.
  3. 3.For per-lot rows in a statement or Flex Query, set Level of Detail to Lot, or check TWS Tax Optimizer.

Where Gloom fits

Gloom shows the average cost and unrealized P&L IBKR returns in Portfolio (PF).

Sample USD portfolio in Gloom PF listing AAPL, JPM, MSFT, JNJ and KO with shares, average cost, market value, daily move and unrealized P&L.
Sample USD portfolio in Gloom 0.20.19, 26 November 2026.

Gloom covers

  • Imported cost basis and unrealized P&L from Flex XML or Sign-in.
  • Manual cost overrides in PF (Set Portfolio Position or AP).

Gloom does not cover

  • Recomputing FIFO, LIFO, specific lots or wash sales.
  • Per-lot tax history (PF stores one average cost per holding).
  • Tax filing or advice; confirm lots in Tax Optimizer.

Why figures differ across screens

4 items
  • Commissions: IBKR nets commissions into cost basis and realized P&L on Trades statements, but breaks them out separately in Mark-to-Market summaries.
  • Lot method: Tax Optimizer supports FIFO, LIFO and manual lot matching for the current or prior trading day; futures and futures options always use FIFO.
  • Currency: Tax Optimizer converts P&L amounts into your base currency while keeping prices in the asset's own currency.
  • Wash sales: Flex Open Positions tracks wash-sale timing in Holding Period Date Time (Wash Sales) alongside cost basis adjustments.

Sources

3 sources
  • IBKR Reporting Reference, updated 20 March 2025, read 26 November 2026: Open Positions (Open Price, Cost Basis Price, Cost Basis Money, FIFO Unrealized PNL, Level of Detail, wash sales) and Trades (commissions netted in cost basis and realized P&L, separate in MTM).
  • IBKR Client Portal Tax Optimizer (updated 3 October 2025) and TWS Tax Optimizer (updated 8 October 2025), read 26 November 2026: Portal path (Performance & Reports > Tax Documents or Menu > Reporting > Tax Documents), lot-matching methods, futures FIFO rule, save before logout, P&L in base currency vs asset-currency prices.
  • Gloom Interactive Brokers plugin and Portfolio docs, read 26 November 2026: synced average cost and unrealized P&L display and manual PF overrides.

Not verified

3 claims
  • Negative Avg Price beside positive cost basis on net-credit trades, reported in March 2026 (r/interactivebrokers). IBKR's Open Positions reference does not document that sign split.
  • IBKR Mobile mixing cost-basis methods between Trades and Open Positions screens, reported in May 2026 (r/interactivebrokers). Not tested on IBKR Mobile here.
  • Whether Open Price and Cost Basis Price diverge on wash sales or transfers in a funded Flex XML export. Checked from IBKR docs only; the screenshot shows a sample USD portfolio.