U.S. mortgage rates were little changed, keeping borrowing costs near record lows after home prices gained the most in more than two years.

The average rate for a 30-year fixed mortgage was 3.35 percent in the week ended Thursday, down from 3.37 percent, McLean, Virginia-based Freddie Mac said in a statement. The average 15- year rate held at 2.65 percent.