hey mate, the deduction for capital losses occurs BEFORE the 50% discount for holding an asset for greater than one year is applied. so you would need to crystallise a $5k loss to end up with a net gain of zero.