There may be several reasons why your dog is breathing fast while at rest. If he has just finished playing hard and is taking a rest, it is normal for him to pant or breathe rapidly for a few minutes. However, if he does not settle his breathing or breathes fast without exerting himself, there may be an underlying medical reason.
Heat Stroke
Dogs do not have sweat glands and use their breathing as a means to cool themselves off. When they become overheated, they will breathe rapidly and excessively. Signs of heat stroke, also known as hyperthermia, include elevated body temperatures of 103F or higher, drooling, weakness, and seizures. Dogs who have flat faces, such as Pugs, Boxers, Bulldogs, Boston Terriers, Lhasa Apsos, Shih Tzus, and Bull Mastiffs are at increased risk of heat stroke because they cannot pant as effectivity.
Fluid in the Lungs
Rapid breathing in your dog may also indicate he has fluid in his lungs. Though a small amount of fluid is usually present in a dog's lungs, excessive build up can become a serious health concern and may indicate other underlying medical conditions. Other symptoms, such as blue-colored gums, low body temperature, and difficulty breathing may also accompany fast breathing.
Heart Failure
Rapid breathing may be a response to congestive heart failure. When a dog's heart starts to fail his body is not circulating enough oxygen, and rapid breathing develops to counteract the lower levels of oxygen in circulation. Breathing can also quicken due to fluid build-up on the lungs and compression of the lungs due to an enlarged liver and/or fluid in the abdomen. Dogs with heart failure often have a persistent cough. Breathing will be labored as well, and your dog may show an increased intolerance for exercise.
Anemia
Anemia can occur when your dog's immune system attacks red blood cells as if they are a foreign threat, or experience blood loss, or when the bone marrow is not making red blood cells as it should. A lower red blood cell count means less oxygen is in circulation, and your dog's body may react by increasing respiration. Other common symptoms of anemia include weakness, jaundice, pale gums, and lethargy. Certain breeds are predisposed to develop anemia, such as Cocker Spaniels, Labrador Retrievers, Miniature Schnauzers, and Shih Tzus. Additionally, tick-borne infectious diseases have been associated with immune-related anemia.
Onion Poisoning
A dog's diet plays a huge role in their health and feeding him table scraps meant for human consumption can have negative impacts. Onions, when consumed in large quantities or over a long period of time, can cause fast breathing in your dog due to them causing haemolytic anaemia. Your dog may also excessively salivate, vomit, or have diarrhea. Garlic is an even more potent a poison than onions and should be avoided as well.
Lung Disease
Diseases of the upper and lower respiratory tract can result in faster breathing. Conditions such as tracheal collapse, laryngeal paralysis, bronchitis, lungworm, pneumothorax and pneumonia would all need to be considered.