my understanding is that you can buy government bonds indexed to certain measures of inflation. TIPS, I believe they are called. Obviously, they yield less than a regular bond, if inflation doesn't go up, but they do keep you in positive territory, if inflation does go up.