The core of any valuation is comparable sales: homes like yours, near yours, that sold recently. An agent starts with those prices and adjusts for the differences.
Adjustments cover things such as square footage, bedrooms and bathrooms, lot size, condition, renovations, and features like a garage or a view. The closer the comparable homes, the fewer adjustments and the tighter the estimate.
The result is usually a range rather than a single number, because the final price depends on timing, presentation and how many buyers are looking when you list.