Cost Basis Calculator (FIFO/LIFO)

Calculate stock cost basis using FIFO, LIFO, specific ID, or average cost. Compare tax impact of each method.

Purchase Lots
$
$
$
$
$
Cost Basis Method

Sale Proceeds

$6,000.00

Cost Basis (FIFO)

$4,008.00

Gain/Loss

$1,992.00

Method Comparison

FIFOGain: $1,992.00
LIFOGain: $1,388.00
Specific ID (Highest Cost)Gain: $1,388.00
Average CostGain: $1,690.00

Tax Impact (Estimated)

FIFOSTCG: $0.00 | LTCG: $1,992.00
LIFOSTCG: $0.00 | LTCG: $1,388.00
AVERAGESTCG: $1,690.00 | LTCG: $0.00
SPECIFICSTCG: $0.00 | LTCG: $1,388.00

Recommendation

Best Method for Tax SavingsLIFO
NoteSpecific ID requires broker notification before sale

Use the Cost Basis Calculator (FIFO/LIFO) above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.