Nick Carter Gets Emotional Over Wife's Pregnancy on 'DWTS,' Learns Sex of the Baby on Live TV

This video is unavailable because we were unable to load a message from our sponsors.

If you are using ad-blocking software, please disable it and reload the page.

On Monday's Dancing With the Stars, Nick Carter got emotional when he revealed that he and his wife are expecting a baby -- and then learned the sex of their baby on live TV!

The heartwarming news was officially announced during the star's pre-taped package before his dance with his pro partner Sharna Burgess. During the emotional segment, Carter revealed that his wife, Lauren, is 16 weeks pregnant, and details the long road that they've been on while trying to have a baby.

WATCH: Nick Carter and His Wife Are Expecting a Baby

It was Icon Week on DWTS, which meant each contestant dedicated their dance to the person who has made the biggest impact in their lives. For Carter, that meant performing a dance that honored his wife.

"There's so many influential people in my life, from teachers to the guys in my group. But when I thought about it, my wife Lauren is my biggest idol and icon that I can think of," Nick shared with Sharna during rehearsal. "Lauren is the woman that I dreamed of. She's my savior in a lot of ways."

According to Carter, the couple has been trying to have a baby for over a year, but the journey hasn't been easy.

WATCH: Nick Carter Just Made Every Backstreet Boys Fan's Dream Come True on 'DWTS'

"It's been rocky, to be quite honest with you," Carter admitted. "There have been times when we thought it wouldn't happen."

The Backstreet Boy and his wife revealed that they had actually gotten pregnant before, but they lost the baby.

"It was really hard on Nick," Lauren shared, fighting back tears. "Just watching him get so excited about something, and then see him so hurt. That was hard."

WATCH: Bindi Irwin Cries During Emotional Tribute to Her Father Steve on 'DWTS'

But their new baby seems to be doing just fine! The couple even invited cameras into their doctor's office to get a look at the ultrasound, and Carter couldn't contain his excitement at seeing his unborn baby.

"It still seems unbelievable," Carter said, smiling.

WATCH: Nick Carter Says Backstreet Boys-Spice Girls Tour Could Happen With Support From Fans

The emotion of the moment and the knowledge of his impending fatherhood really connected with Carter and Burgess when it came to their performance on the dance floor. The two pulled off an amazing contemporary dance set to "I Can't Help Falling in Love With You."

After the dance, Carter couldn't keep his emotions back any longer and the 35-year-old singer cried tears of joy on the dance floor before bringing his 32-year-old wife on stage to share a kiss.

PHOTOS: The Complete List: 'Dancing with the Stars' Winners

Even the judges were brought to tears, and the tearful moment and passionate performance was rewarded with perfect scores.

But that wasn't the end of the good news for the happy, expectant couple. Backstage, while speaking with host Erin Andrews, they were presented with a giant, gift-wrapped box, and inside were balloons that would reveal the gender of their baby -- a surprise saved for this moment.

Opening the package, the soon-to-be-parents were awash with joy as blue balloons floated up out of the gift-wrapped box: The couple will be welcoming a baby boy!

WATCH: Nick Carter Asked an *NSYNC Star For Advice Before Joining 'Dancing With the Stars'!

It was truly an amazing, powerful moment that has to be one of the sweetest in Dancing With the Stars history!

Related Gallery