U.S. construction spending posted modest gains in April, driven by an uptick in home building and government construction that lifted total activity to the highest level in five years.

Construction spending rose 0.2% in April to a seasonally adjusted annual rate of $953.5 billion, the strongest performance since March 2009, the Commerce Department said Monday. The April increase was lower than economists had expected. But the government revised March activity higher to a 0.6% gain, up from an initial estimate of a 0.2% increase.

The small April improvement, combined with the strong gain in March, suggest that the construction industry is recovering from the harsh winter and will provide a boost to growth in the months ahead.

The April figure marked the third straight increase after the weather pushed spending down 0.4% in January. Construction activity dragged on the overall economy in the first quarter when gross domestic product actually shrank.

The overall economy contracted at an annual rate of 1% in the January-March quarter. Analysts estimate growth to recover to a rate of around 3.8% in the April-June period. The expectation is that strong gains in hiring will help lift consumer spending. Other sectors, including construction, should also bounce back.

In April, residential construction edged up a slight 0.1%. It was the lowest monthly gain since an outright decline last October. However, the small increase followed strong gains over the past five months and was enough to lift spending on housing to a seasonally adjusted $378.5 billion, the highest level since March 2008.

Spending on single-family home construction was up 1.3%, while spending on apartment construction rose 2.7%. Only the remodeling sector, which accounts for 40% of the total, posted a decline, falling 2.2%.

Spending on non-residential projects fell 0.1% to an annual rate of $308 billion with the weakness coming in the communications industry, where activity dropped 11.7%. Spending on hotels, office buildings and shopping centers all showed gains.

Government construction spending rose 0.8% to a rate of $267 billion. This sector has been struggling because of budget cutbacks at all levels of government. In April, spending on federal projects rose 1.9% to a rate of $23.5 billion. Spending on state and local projects was up 0.7% to $243.5 billion.

Total construction spending is 8.6% higher than a year ago, led by a 17.2% increase in housing construction. Non-residential construction is up by 5.6% from a year ago, while government projects are just 1.2% higher.

Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.