Mr Dunne has held the Ohariu seat in various forms since 1984, and this year campaigned on his track record, developing the Northern Wellington Festival, and reinvigorating local residents' associations.
His majority has slipped over the past few elections and this year he faced stiff competition from Mr Chauvel, who campaigned hard on local issues like better public transport and more parks and sports facilities.
Mr Dunne said he took stock after the last election and put in a lot of effort to reconnect with local communities and become more visible and active.
"I think that's paid a dividend tonight.''
Mr Dunne was Revenue Minister and Associate Health Minister after the 2008 election, both positions outside Cabinet as part of his agreement with National.
It was too soon say what role he would play in a future government, he said.
"The shape of the new government has to be determined, I imagine we'll have some discussions in the next few days about all of that and we'll see what happens from there,'' he told APNZ.
"The prime minister has made it clear he wants to run an inclusive operation so I'm happy to talk to him and see what happens.''
Mr Dunne said United Future had not received the party vote result it was seeking, getting less than 1 percent, but had "kept the flame burning''.
He will again be the party's only representative in Parliament.
During his time in Parliament, Mr Dunne has overseen the first business tax cuts in two decades, worth $3.4 billion, and a ban on the sale of synthetic cannabis products like Kronic.