Put in the appropriate information in
Metalkid's IV calculator. This one is more accurate than Serebii's IV calculator. Make sure that the Pokemon is fresh caught/hatched too for better results.
If the Pokemon is at a low level, it is harder to estimate its IVs. To remedy this, do a level 100 battle on wifi with someone and use your Pokemon's stats from there.