The federal statistics office Destatis revealed on Tuesday that the total surplus had reached €6.4 billion, included of €2.3 billion in the federal government, €3 billion for social security and €1.6 billion for the states.
Only communities, the lowest level in Germany's administrative system, had a deficit, at around €700 million.
There is still some way to go before the surplus matches 2007 levels of €9 billion.
But 2014's figure is a huge improvement over 2013, which saw the public purse €7.2 billion in the red.
Overall income from taxes and social security contributions grew by 3.7 percent in 2014 compared with the previous year, to €1,245.9 billion.
While the statisticians' original prediction had been for a surplus of around €18 billion, they said that the difference was due to changes in their calculations.