The offers on this page are from advertisers who pay us. That may influence which products we write about, but it does not affect what we write about them. Here's an explanation of how we make money.

How to buy a house: 13 steps to getting the keys to your new home

If you're considering buying a house, you've probably already started looking at potential homes online. Naturally, you want to see the possibilities — and dream about your new place and neighborhood. But just how do you buy that house you fell in love with online? Yahoo Finance has compiled 13 steps to simplify the home buying process.

Here's how to buy a house, step-by-step.

Read more: First-time home buyer in 2024 — What you need to know

Here are the landmarks you will want to achieve along the way to getting the keys to your new place.

To start, you'll want to determine how much house you can afford comfortably. If you properly gauge your financial capacity, your monthly mortgage payment will feel right from the beginning and get even easier to make over time.

Divide your pre-tax monthly salary by four. That's a good start for a target monthly payment. But that's not just principal and interest payments. You will also want to include property taxes and homeowners insurance in the total.

Mortgage lenders often recommend your housing costs total around 28% of your gross pay. That calculation is known as your debt-to-income ratio.

Learn more: Types of mortgage loans

How much money do you need to buy a house?

Ask yourself how much money you need to buy a house. Several costs will factor into this amount.

The down payment will be the biggest chunk of cash that you'll need. That can range from 3% of the purchase price (some lenders even offer 1%-down loans) to the optimum 20%. “Optimum” because with 20% or more down, you won’t be charged private mortgage insurance. PMI is a fee that protects the lender in the event that you default on the loan.

Other low- and no-down-payment options are available, which we'll cover later.

Read more: What is mortgage insurance, and how much does it cost?

Pay down debt

Prioritize paying off debt before buying a home. You'll have plenty of new expenses after you move in and will want to have extra spending power available.

Check your credit score

Knowing your credit score is a must. Many financial services providers offer FICO scores for free, and the numbers will vary a bit from each. Knowing generally where you fall on the bad-to-excellent scale will suffice. The higher your score, the better your bargaining power for a lower interest rate and fewer fees.

Have a cash cushion

Lenders want to see that you've got some money left over after making the down payment and covering the closing costs. It doesn't have to be a huge amount, but showing that you have a bit of a cash cushion during the purchase and once in the home is a good thing.

Dig deeper: What are mansion taxes, and how do they work?

That lump sum down payment has to be in a savings account or somewhere readily accessible. From the minimum 1% of the purchase price to the preferred 20% down, or anywhere in between, it's got to be money ready to be in motion.

It seems people may have finally learned this lesson. Over the last nearly 10 years, over 60% of home buyers said they shopped more than one lender, according to Fannie Mae research. Gone are the days when buyers just went with a real estate agent's "preferred lender," no questions asked. Comparison shopping mortgage lenders for the best rate and most favorable fees is a thing. Don't skip it.

Dig deeper: Best mortgage lenders for first-time home buyers

Getting a written mortgage preapproval in hand is another step rarely taken for granted these days. That's because real estate agents and home sellers want to be sure you're a serious shopper.

Yahoo Finance tip: The provider who gives you the preapproval letter doesn't have to be your final lender choice. You'll want to take one more pass at getting a better loan offer once you have a buy-sell agreement in hand.

Now you're set to shop for that perfect house. Almost. You need the right real estate agent on your side — and that's not the seller’s agent shown on the “for sale” sign or the “listing agent” named in the home’s online profile. Talk to two or three buyer’s agents and find a strong negotiator and advocate.

Related: How long does it take to buy a house?

The fun part: looking at houses. Sure, you skipped down to this house-hunting step a bit early, right? Not to worry, because now that you've completed steps 1 through 6, it's time for a serious search for the perfect home.

Attend some open houses and scour the local market for neighborhoods and amenities that best suit you. Find a couple of contenders: one to make an offer on and some backup options if your favorite falls through.

Your buyer's agent will handle the details of making an official offer and negotiating counteroffers.

When you make an offer on a house, you'll likely have to put up some earnest money with your written offer. That can be from several hundred to a couple thousand dollars. But don't worry, this isn't a new chunk of cash. It's a small slice from your down payment and will be applied to the total money down later.

Lenders will also want to see a cash cushion available for maintenance, repairs, furniture, and other related expenses, such as moving costs.

Dig deeper: How to get the lowest mortgage rates

Then comes a home inspection and home appraisal. Both protect you from unknown problems and a valuation issue. Inspection issues could include things such as a leaky roof, mold or plumbing and electrical problems.

The appraisal assures the lender that the property is worth enough to warrant a loan approval — and alerts you to the possibility of overpaying for a property that may be worth a lot less than you thought.

It's time to shop again, this round for insurance. Your lender will require it, and of course, you need it. It's another round of comparison shopping between multiple providers. Bundle and save? You've got to put every sales pitch to a numbers test.

With an offer in hand, you can get real-deal loan offers. Each lender vying for your business will give you a written offer. If you have each lender provide a zero-discount-points offer, you can compare apples to apples and then decide if you want to buy discount points to lower your interest rate.

Before closing, you'll do one more walk-through with your agent to ensure everything is as promised. Repairs, if any, are completed; things like that.

You'll face a pile of paperwork, so be patient.

And there are closing costs. Figure those will amount to another 3% to 4% of the home's selling price.

MORE DETAILS: Closing on a house: What to expect and how to prepare

Ask questions and understand what you're signing. If there are any last-minute surprises, you can still walk away. But don't worry, that's not likely to happen. You'll probably have a, "Am I really doing this?" feeling, but it will soon transform into delight and excitement when you get the keys.

Congratulations. You bought a house.

Before buying a house, you should have enough money for a down payment and closing costs, plus some extra savings left over. On a conventional mortgage, you may be able to put as little as 3% down. Closing costs are usually 3% to 4% of the home purchase price. So if you're buying a $400,000 home, you'll need roughly $24,000 to $28,000 for both the down payment and closing costs.

When buying a house, the first thing to do is get your finances in order. Figure out how much house you can comfortably afford (both in terms of the home price and the monthly payments), see if you have enough money, and check your credit score and debt-to-income levels.

Beginners should know that to buy a house, you'll need to prepare financially, find a real estate agent, shop for homes, make an offer, then pay closing costs on closing day.