Andy Grammer proudly saved himself for marriage. But he had a little help.
The singer revealed the tidbit while appearing on The Talk Wednesday (Aug. 3), during a discussion about a new study that found younger millennials -- born in the 1990s -- are more than twice as likely to be sexually inactive in their early 20s as the previous generation.
"I actually waited until I was married to have sex," Grammar said. "That was not without some porn, unfortunately."
Grammer and his wife, singer-songwriter Aijia, got married in 2012.
See photos of Andy Grammer:
NEW YORK, NY - AUGUST 01: Andy Grammer performs on NBC's 'Today' at Rockefeller Plaza on August 1, 2016 in New York City. (Photo by Noam Galai/WireImage)
NEW YORK, NY - AUGUST 01: Musician Andy Grammer visits SiriusXM Studio on August 1, 2016 in New York City. (Photo by Matthew Eisman/Getty Images)
NEW YORK, NY - JUNE 18: Andy Grammer performs at Citi Field on June 18, 2016 in New York City. (Photo by Brad Barket/Getty Images)
OAKLAND, CA - JUNE 13: Recording artist Andy Grammer performs the national anthem prior to Game 5 of the 2016 NBA Finals between the Cleveland Cavaliers and the Golden State Warriors at ORACLE Arena on June 13, 2016 in Oakland, California. NOTE TO USER: User expressly acknowledges and agrees that, by downloading and or using this photograph, User is consenting to the terms and conditions of the Getty Images License Agreement. (Photo by Ronald Martinez/Getty Images)
NAPA, CA - MAY 27: Andy Grammer performs at the 4th Annual BottleRock Napa Music Festival on Day 1 at Napa Valley Expo on May 28, 2016 in Napa, California. (Photo by Steve Jennings/WireImage)
CHARLOTTE, NC - MAY 21: Andy Grammer performs prior to the NASCAR Sprint Cup Series Sprint All-Star Race at Charlotte Motor Speedway on May 21, 2016 in Charlotte, North Carolina. (Photo by Jonathan Ferrey/NASCAR via Getty Images)
BEVERLY HILLS, CA - MAY 10: Andy Grammer arrives at the 64th Annual BMI Pop Awards at the Beverly Wilshire Four Seasons Hotel on May 10, 2016 in Beverly Hills, California. (Photo by Steve Granitz/WireImage)
NAPA, CALIFORNIA - APRIL 08: Andy Grammer attends 'Live In The Vineyard' on Day 2 at the Uptown Theatre Napa on April 8, 2016 in Napa, California. (Photo by Steve Jennings/WireImage)
DENVER, CO - FEBRUARY 27: Recording artist Andy Grammer performs during pregame of the 2016 Coors Light Stadium Series game between the Detroit Red Wings and the Colorado Avalanche at Coors Field on February 27, 2016 in Denver, Colorado. (Photo by Brian Babineau/NHLI via Getty Images)
LOS ANGELES, CA - DECEMBER 31: Singer Andy Grammer attends Dick Clark's New Year's Rockin' Eve with Ryan Seacrest 2016 on December 31, 2015 in Los Angeles, CA. (Photo by Frederick M. Brown/DCNYRE2016/Getty Images for dcp)
NEW YORK, NY - DECEMBER 16: Musician Andy Grammer visits the SiriusXM Studios on December 16, 2015 in New York City. (Photo by Taylor Hill/Getty Images)
LOS ANGELES, CA - DECEMBER 06: Andy Grammer performs onstage during the KOST 103.5 Christmas Land held at Microsoft Theater on December 6, 2015 in Los Angeles, California. (Photo by Michael Tran/FilmMagic)
LAS VEGAS, NV - DECEMBER 04: Singer Andy Grammer attends the 2015 NASCAR Sprint Cup Series Awards at Wynn Las Vegas on December 4, 2015 in Las Vegas, Nevada. (Photo by Chris Graythen/NASCAR via Getty Images)
LOS ANGELES, CA - DECEMBER 06: Singer/Songwriter Andy Grammer attends the KOST 103.5 Christmas Land at Microsoft Theater on December 6, 2015 in Los Angeles, California. (Photo by Earl Gibson III/Getty Images)
NEW YORK, NY - DECEMBER 02: Singer-songwriter Andy Grammer performs during the 83rd Annual Rockefeller Christmas Tree Lighting Ceremony at Rockefeller Center on December 2, 2015 in New York City. (Photo by Gilbert Carrasquillo/FilmMagic)
NEW YORK, NY - NOVEMBER 30: (EXCLUSIVE COVERAGE) Singer/songwriter Andy Grammer visits 'The Elvis Duran Z100 Morning Show' at Z100 Studio on November 30, 2015 in New York City. (Photo by Slaven Vlasic/Getty Images)
The study said the decreased sex activity may be due to pressure to succeed, increased online socializing, unrealistic physical expectations encouraged by dating apps and concerns of date rape, according to the Washington Post.
"I do think that, as a culture, we don't understand the effects of that. I think feel for men right now because it's never been this easy to do something so destructive to yourself," said Grammer. "It makes my heart sad that we don't quite understand how destructive that is, on a daily basis, that we can be doing to ourselves."