The economy unexpectedly contracted in the fourth quarter, suffering its first decline since the recession ended more than three years ago as businesses scaled back on restocking and government spending plunged.

Gross domestic product fell at a 0.1 percent annual rate after growing at a 3.1% clip in the third quarter, the Commerce Department said on Wednesday.