Canada posted a small budget surplus in the first two months of the new fiscal year as revenue was boosted by personal and corporate income taxes, the Finance Department said on Friday.

In April to May, the government had a surplus of $68 million, slightly smaller than a $114 million surplus seen over the same two months last year. The current 2017-18 fiscal year began in April.

In its budget released earlier this year, the government forecast a deficit of $28.5 billion for the fiscal year as part of its plan to bolster the economy.

Revenue was up 4.7 per cent in April and May compared to the year before as income from personal, corporate and non-resident taxes all rose.

But program expenses rose 6 per cent as children's benefits were higher after the government revamped a program for families last July. Benefits to the elderly and unemployed also rose.