Get your taxes done using TurboTax

You can't minimize the capital gain by gifting some or all of the profit.  A gift is not a tax deduction.