If you're thinking about buying a house in the next few years, you might want to work on improving your credit score.

The Federal Reserve reports that 90% of U.S. mortgages taken out in the first quarter of 2019 were by home buyers with a score of at least 650, and 75% had a score higher than 700.

The median credit score for mortgages taken out this year sits at 759, the report found, and only 10% of mortgage borrowers had credit scores under 647.

FICO credit scores range from 300 to 850, and the national average is 704. Any score between 700 and 749 is typically deemed "good," while scores from 650 to 700 are "fair." Excellent scores are usually those over 750.

While you can likely qualify for a home loan with a rate lower than the median, a higher credit score typically means better interest rates and loan options. A multitude of other factors can also influence the mortgage-approval process, including the cost of the home, the size of the down payment and your income.