Deputy Prime Minister Barnaby Joyce has a solution for Sydneysiders who can't afford to buy a home: get out of Sydney.

Declaring himself fed up with the focus on Sydney and Melbourne in the housing affordability debate, Mr Joyce suggested homebuyers give up on water views and relocate to the regions, where property is cheaper.

"I get annoyed when people talk about that the only house that you can buy apparently is in Sydney and it's too dear," he told ABC Radio National. "There are other parts of Australia. I live in one, it's called Tamworth."

Mr Joyce was responding to yet another report showing homes in Australia's two biggest cities are among the world's least affordable. The Demographia survey released on Tuesday found Sydney was the second most expensive city in the world for housing, behind only Hong Kong, while Melbourne ranked fifth - more expensive than London and San Francisco.