The defence of David Bain cost more than $3 million in legal aid, the highest for an individual in New Zealand's legal history.
The Ministry of Justice has released the final figure - $3,333,495.
The former Dunedin man was convicted in 1995 of murdering his parents, two sisters and brother and spent 13 years in jail before being acquitted in a 2009 retrial.
Lawyer fees make up a large part of the costs. They are not broken out for the original High Court and Court of Appeal cases, which together totalled $250,389.
But the fees cost $1,778,583 (58 per cent) of the remaining $3,083,106.
The last High Court retrial was easily the most expensive at $2,338,809, with lawyer fees costing $1,404,503 and disbursements the rest.
Disbursements for which legal aid can be provided include research, investigators, DNA and blood tests, forensic expenses, court filing fees, witnesses, accommodation and living costs for legal representation, some general office expenses, agents' fees and specialist reports.
Legal Aid Services director Michele McCreadie said the service did not have information about who received fees for the original trial and appeal.
For the trial and associated Court of Appeal, Privy Council and Supreme Court proceedings, the legal aid was paid to the lead provider Michael Reed, QC, who was responsible for the payment of lawyers in David Bain's defence team and other costs.
Colin Withnall, QC, of Dunedin, was part of Mr Bain's defence team for seven years following the first failed appeal.
He said legal aid provided legal representation to those who could otherwise not afford it.
"When all this started David Bain was a student ... people simply can't afford the amount of money that it costs to do this."
While paid legal aid for two hearings before the Court of Appeal, Mr Withnall, with long-time Bain supporter Joe Karam, worked many unpaid hours.
"For all the years that Joe and I worked to investigate it, there was no state funding. Joe paid a lot himself in the early days but ran out of money, and after that we did it pro bono publico - for the good of the public."
Information from Legal Aid Services noted Mr Bain is not receiving legal aid to assist with his application for compensation. This is being considered by a retired Canadian Supreme Court judge.
- Otago Daily Times