KB Home, the best-performing U.S. home-builder stock this year, reported a narrower loss for its fiscal second quarter as revenue and selling prices jumped.

The net loss for the three months through May was $3 million, or 4 cents a share, compared with a loss of $24.1 million, or 31 cents, a year earlier, the Los Angeles-based company said today in a statement. The average of 23 analyst estimates was for a loss of 5 cents a share, according to data compiled by Bloomberg.