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.
| Field or tool | Shows | Watch for |
|---|---|---|
Cost Basis Price (Flex) | Lot cost per share, fees netted | Cost Basis Money divided by shares |
Open Price (Flex) | Open position price | Same reference text as Cost Basis Price |
FIFO Unrealized PNL (Flex) | Position Value minus cost basis | Shifts if you change lot method |
| Tax Optimizer | Account and same-day lot match | P&L in base; prices in trade currency |
| Trades | Closed P&L with fees netted | Mark-to-Market lists fees separately |
Checked Not affiliated with Interactive Brokers.
Check your lot method and open lots
- 1.In Client Portal, open Performance & Reports > Tax Documents (or Menu > Reporting > Tax Documents) to view Account Match Method in Tax Optimizer.
- 2.Checking requires no change; only press Save Changes before logging out to switch defaults.
- 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).

Gloom covers
- Imported cost basis and unrealized P&L from Flex XML or Sign-in.
- Manual cost overrides in
PF(Set Portfolio PositionorAP).
Gloom does not cover
- Recomputing FIFO, LIFO, specific lots or wash sales.
- Per-lot tax history (
PFstores 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 DocumentsorMenu > 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
PFoverrides.
Not verified
3 claims
- Negative
Avg Pricebeside 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 PriceandCost Basis Pricediverge on wash sales or transfers in a funded Flex XML export. Checked from IBKR docs only; the screenshot shows a sample USD portfolio.