KB Home said it lost $12.5 million, or 16 cents a share, last quarter, compared with a loss of $45.8 million, or 59 cents a share, a year earlier. Analysts had been bracing for a deeper loss of 22 cents a share, according to Fox Business.