Get your taxes done using TurboTax

look at form 4797 page 2  line 32 is the section 1231 gain which is then transferred to line 6 on page 1 of 4797

then the net 1231 gain gets transferred to schedule d line 11