How do you know when to use the special right triangles?

You can use the special right triangles whenever an angle is a multiple of either $\frac{\pi}{6}$ radians (=${30}^{\circ}$) or $\frac{\pi}{4}$ ($= {45}^{\circ}$).