According to the Office for National Statistics,ย borrowing to cover the gap between spending and revenue was ยฃ600mย for July.
There was a surplus of ยฃ2.8bn in the same month a year earlier.
The Treasury blamedย disappointing corporation tax receipts for the shortfall.
The Office for Budget Responsibility, the official UK economic forecaster, said there was still “significant uncertainty” about the outlook for borrowing this year.
Four months into the financial year the government has borrowed ยฃ44.9bn, ยฃ9.3bn higher than the same period in 2011.
That excludes banking interventions and the one-off boost in April from a transfer of Royal Mail pension assets to the public sector.
The OBR had predicted that borrowing on the same measure would be ยฃ120m for the whole of the financial year, down from the ยฃ125m borrowed last year.