That is more of a myth than a reality. If you chart gold investment returns along with consumer price inflation since 1971 (when the US fully left the gold standard) it turns out that gold isn't a great inflation hedge. Other asset classes are probably a better choice for most investors.