Commission is the largest line item and is agreed upfront with your listing agent rather than set by any board or regulation. It's split between the listing side and the buyer's side, and the exact structure is part of your listing agreement, not a fixed percentage set anywhere else.
Beyond commission and legal fees, a seller typically pays out any remaining mortgage balance plus a discharge fee, and prorated property tax adjustments if taxes were paid in advance or are owing. If there's a mortgage penalty for breaking the term early, that comes out of proceeds too.
Your lawyer provides a statement of adjustments before closing that itemizes every dollar in and out, so there are no surprises on possession day. Get your hand-reviewed valuation from Joel Dyck.