A KB Home sign stands in front of a house under construction in Lake Forest, California.

KB Home's shares were up sharply on Friday after the company reported better-than-expected first quarter earnings.

The homebuilder posted earnings per share of 8 cents on revenue of $580 million. Analysts polled by Thomson Reuters had expected earnings of 2 cents per share on $474.9 million in revenue.