That's why I have a bunch of rental properties and also do a flip or two a year. Offsetting gains with loss is very very very easy to do for me.