Who Pays the Commission?
The Seller
In many cases, the Seller has signed a listing agreement with his agent specifying a certain fee to be paid for selling the home. It can include provisions for splitting that fee with the selling agent, regardless of agency representation.
The Buyer
In some cases, the Buyer pays his agent a commission as set out in their written agreement. If the buyer pays his agent from his separate funds, it would not be appropriate for the buyer's agent to also accept part of the fee paid by the seller.
Indirectly, The Buyer Does
However, an argument can be made that the buyer indirectly pays the commission even if it comes from the sellers proceeds. The assumption is that the buyer could have bought the home for less had it not been listed and the buyer could have dealt directly with the seller.
The Client Determines How the Agent is Paid
The seller agrees to pay his agent in the listing agreement and the sub-agent of the seller who sells the property. The buyer agrees to pay his agent if buyer agency is elected. In some cases, the buyer directs his agent to try and be paid from the sellers proceeds. In any event, each party pays their agent as specified in their written agreement.