Is it bad to hold my breath when I workout?

Yes, you want to relax your body and focus on taking full deep breaths. A way to prevent this is counting your reps out loud. Well, not so loud that everyone at the gym stares at you. In order to count you have to breath perfectly, so this is a quick fixer. While you are at it scan your face and leave it tension free as well. Lets just isolate the muscles that we are exercising.
Proper breathing techniques increase the effectiveness and performance results of your workout. When oxygen is present, your body produces 38 ATP (energy) per glucose. Without oxygen, i.e. holding your breath, your body produces only 2 ATP per glucose. In addition to increasing the possibility of you passing out in front of your fellow gym-mates, a lack of oxygen will limit your ability to create the energy necessary to maintain muscle exertion.

It takes concentration and practice in the beginning, but creating the habit of steady breathing from lower in your diaphragm will allow you to work longer and harder and reach your fitness goals sooner.
Holding your breath is bad.  The main reason is your body needs oxygen to workout properly.  As you hold your breath you build up your CO2 in your body which will cause you to fatigue faster.  Some of my clients either like to count their reps which helps them breath or during your contraction of the muscle breath out and when you relax breath in.  So breathing will help you last longer in your workouts.
Yes. Holding your breath while working out, especially during high intensity exercise can potentially produce what is called the valsalva effect. This happens due to a sharp rise in blood pressure because a person is holding their breath, followed by a sudden drop in blood pressure. This can cause one to faint or blackout while performing an exercise. It is safer to learn proper breathing techniques while exercising which can be summarized as this:  Keep your face relaxed with the mouth opened and the tension being isolated to the muscle group that is doing the work. Exhale (or breath out) while lifting the weight / exertion phase and inhaling (or breathing in) while lowering the weight / relaxation phase.

You should be careful with this, because if you hold it for too long, you may end up passing out! There is actually a maneuver called the Valsalva maneuver which occurs when a person tries to exhale forcibly with a closed windpipe so that no air exits through the mouth and nose. This maneuver impedes the return of venous blood to the heart, and can also dramatically increase blood pressure. So it should be avoided.

 The proper way to breathe while resistance training is to inhale as you’re bringing the resistance back to its resting position, and exhale as you’re working hardest against the resistance. 

Continue Learning about Avoiding Pain & Injury During Exercise

Stay Safe When Exercising With Diabetes
Stay Safe When Exercising With Diabetes
If you live with type 1 or type 2 diabetes, exercise is one of the best things you can do to offset diabetic damage to your heart and circulatory syst...
Read More
Why do back bends hurt?
Sadie LincolnSadie Lincoln
The goal with back bends is to balance the bend throughout the spine in a nice fluid curve. Most...
More Answers
Is it safe to do rotator cuff exercises every day?
National Academy of Sports MedicineNational Academy of Sports Medicine
While it probably is not unsafe to perform rotator cuff exercises every day, the rotator cuff mu...
More Answers
Are There Specific Stretches I Can Do to Prevent Hip Pain From Occurring?
Are There Specific Stretches I Can Do to Prevent Hip Pain From Occurring?

Important: This content reflects information from various individuals and organizations and may offer alternative or opposing points of view. It should not be used for medical advice, diagnosis or treatment. As always, you should consult with your healthcare provider about your specific health needs.