Form 1099-B is used to report capital gains and losses that a taxpayer incurs after selling certain assets through brokerages and barter exchanges. These firms send separate forms for each transaction to both the IRS and the investor.