Take your height that you want and divide the length it will take to get your height you want
Example: If you want a 4" rise over a 8' distance, you convert the 8' into inches and divide that into your 4" and that will give you degree or percent of grade.
8' = 96"
96" into 4" = .041 or 4%