My HRM monitor software calculates % of grade for me. You can do it the old fashioned way. If you know how tall something is you can divide that by the length you traveled to get up it.
When I first started riding my HR would rocket on hills. Since I'm training to do Ultra Distance events, I've been focusing on controlling my HR. I don't want to burn out on the climbs.
V.