Selection of brokerage in capital gain calculation

Is there an option where we can include / exclude brokerage amount for capital gain calculations?
Very helpful to reconcile while migrating.