Getting started

When you sell something (stocks, bonds, options, real estate), then the proceeds are capital gains/losses.