To figure out your capital gains, subtract what you originally paid for the asset (that's your cost basis) from what you sold it for. If you end up with a positive number, congrats, you've got a capital gain on your hands!