Dermatologists recommend using a sunscreen with an SPF of at least 30, which blocks 97 percent of the sun's UVB rays. Higher-number SPFs block slightly more of the sun's UVB rays, but no sunscreen can block 100 percent of the sun's UVB rays.