Investors & landlords

Actually it is that simple, really.

The broker is required to track what you paid and what you sold it for and commissions, if any.

It is rare that the broker withheld any tax on such a transaction. It's your responsibility to make an estimated tax payment, if called for.

TurboTax calculates the gain and the exact  tax for you, that's what you are paying for.