Dog hiccups, like human hiccups, are a spasm of the diaphragm. In both dogs and humans, hiccups are harmless, but they can be annoying. Puppies are particularly prone to hiccups, because their insides are growing rapidly. Hiccups will eventually go away on their own after a few minutes. You may try the following suggestions to rid your dog of hiccups but doing nothing works, too. If your dog hiccups for longer than 30 minutes or seems to also be coughing, gagging or otherwise seems off in some way, contact the veterinarian.
Know that your dog will be fine whether the hiccups go away immediately or not. You may choose to simply ignore them, or you can continue to try to get rid of them. Whether any or all of these methods work completely depends on the individual dog. Because the hiccups will go on their own and they are not harmful in any way, you may simply be doing these activities for your own entertainment. At any rate, distracting the dog by interacting with him will allow him to forget about the hiccups long enough for them to no longer annoy him while waiting for them to go away.
Feed the dog a meal, snack or treat. Eating will cause him to change his breathing patterns temporarily, and it may be just enough to send the hiccups packing.
Offer water. Like humans, sometimes a drink of water does wonders.
Try startling the dog. Startling can work with humans and dogs alike. Scaring your dog repeatedly can cause him to mistrust you, so do not do this often. Once is enough to assess whether this method works for your individual animal.
Go for a walk, a run or another type of vigorous play session. You know what your dog most likes to do. If you can get him breathing differently through exercise, it may get rid of the hiccups. If not, he'll be so happy playing with you that the hiccups will cease to bother him.
Give him a bath. For most dogs, a bath is enough of a disruption in their daily routine that the attempts to avoid it will cause enough of a change in breathing that the hiccups may go away.