Who Sets Mortgage Rates?

Who sets mortgage rates? The Fed? The banks? The stock market? The reality is that market forces set mortgage rates, but there are certain factors that contribute to mortgage rates more than others.