This is an online calculator that calculates the Angle of Prism for a given Refractive Index. Just enter the Angle of Incidence and the Refractive index of the Prism Material to get the corresponding Angle of Prism value.

Consider OP is the incidence ray, which is making the angle i1 with normal, and QR is the emergent ray making an angle of emergence, i2 with the normal. A is the prism angle and n is the refractive index of the prism.
The angle of minimum deviation (δ) is the smallest angle of deviation that a prism can produce for a particular wavelength of light. It occurs when the incident ray inside the prism is refracted at the first surface, undergoes minimum deviation inside the prism, and then refracts again at the second surface, emerging parallel to its incident direction.
In the case of minimum deviation, ∠r1=∠r2=∠r
Also, we’ve A = ∠r1 + ∠r2
so, A = ∠r + ∠r = ∠2r

Now, again,
A + δ = i1 + i2
But in the case of minimum deviation, i1 = i2 = i,
So, A + δ = i + i = 2i …. (1)
So from snell's law, we have,

Again from (1), we can write, A + δ = 2i, so the above equation becomes,

This is the equation for the angle of prism, A.