Consider two planes r⋅n1=d1 and r⋅n2=d2, with normals n1 and n2. The inclination of the two planes to each other is completely decided by the inclination of n1 and n2 — if the normals are perpendicular, the planes are perpendicular too. So the planes are perpendicular to each other if and only if n1⋅n2=0. In Cartesian form, for planes a1x+b1y+c1z+d1=0 and a2x+b2y+c2z+d2=0, the normals are (a1,b1,c1) and (a2,b2,c2), so this perpendicularity condition becomes a1a2+b1b2+c1c2=0.
When the two planes are not perpendicular, "the angle between the planes" is defined, by convention, as the acute angle between their normals — two intersecting planes actually form a pair of supplementary angles at their line of intersection, and by convention the acute one is always reported. Using the dot-product formula for the angle between two vectors, and taking the modulus of the cosine to force an acute result:
cosθ=∣n1∣∣n2∣n1⋅n2.
Worked example. Find the angle between the planes r⋅(i^+j^−2k^)=8 and r⋅(−2i^+j^+k^)=3.