How to calculate
For reflection, copy the reflected angle. For refraction, multiply the sine of the transmitted angle by the transmitting index divided by the incident index, then take the inverse sine.
Worked example
Use Known angle Refracted angle · Known ray angle from the normal (degrees) 30 · Incident medium refractive index 1 · Transmitting medium refractive index 1.5. The result is ≈ 48.59037789073 °.
Input and result notes
Measure every angle from the perpendicular to the surface. An inverse sine above the physical range means the input ray is impossible for these indices.
OpenStax on the law of reflection