Before I became a realtor I wondered this same question, how do realtors get paid? I will make a long article very short.
Here's the basic breakdown:
If you are in the market to buy or rent - It costs you nothing to use a realtor. I'll repeat it doesn't cost you a penny. The seller or owner of the property pays all the commissions for bringing them a buyer in real estate transactions.
Here's a visual break down and an article link attached below to further explain how Your realtor makes a living.