What is cost basis?
Cost basis is what you paid for an investment, and it's the starting point for every gain Portview shows
What it means
Cost basis is the total you paid for a holding, fees included. Buy 10 shares at $100 with a $5 fee, and your cost basis is $1,005.
Your gain is what the holding is worth now minus its cost basis.
When you sell part of a holding
If you bought shares at different prices, Portview has to decide which ones you sold. That choice changes your gain on the sale.
FIFO (First In, First Out) sells your oldest shares first, and it's the default. LIFO (Last In, First Out) sells your newest shares first. Average Cost treats every share as if it cost the average price you paid.
Say you bought one share at $100, then one at $150, and sold one at $160. FIFO shows a gain of $60, LIFO a gain of $10, and Average Cost a gain of $35.