The agent will receive a commission for selling your property – usually a percentage of the sale price. You negotiate and agree on the commission rate prior to selling your house, and it is included in the agency agreement that you both sign.
Where the commission is a percentage of the sale price, the size of the commission will of course depend on the circumstances of the particular property transaction and the terms of the agreement between you and the agent.