This applet will calculate reflected and refracted light intensity according to the incident angle for p-wave and s-wave.
[hide][/hide]

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/emwaveboundary_pkg/emwaveboundary.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Refraction satisfy Snell's law : $n_1 \sin\theta_1=n_2\sin\theta_2$
The intensity for reflected wave $\vec{E}'= r_s \vec{E}_s + r_p \vec{E}_p$ where $\vec{E}_s, \vec{E}_p$ are electric field for s-wave and p-wave.
$r_s= \frac{n_1\cos\theta_1 -n_2\cos\theta_2}{n_1\cos\theta_1 +n_2\cos\theta_2} =\frac{\sin(\theta_1-\theta_2)}{\sin(\theta_1+\theta_2)}$
$r_p=\frac{n_2\cos\theta_1-n_1\cos\theta_2}{n_2\cos\theta_1+n_1\cos\theta_2}=\frac{\tan(\theta_1-\theta_2)}{\tan(\theta_1+\theta_2)}$
When $\theta=\theta=0$, the fraction of reflected wave is $\frac{(n_1-n_2)^2}{(n_1+n_2)^2}$.
for light from air(n=1) to glass (n=1.5), there are only $\frac{(1-1.5)^2}{(1+1.5)^2}=\frac{0.5^2}{2.5^2}=\frac{1}{25}=4%$ light being reflected.