Cameron Diaz has been known as one of the hottest actresses in Hollywood for many years now, and despite being 42-years-old, she still manages to maintain her desired toned and sexy physique. So what is her secret?

Cameron Diaz
Diaz keeps healthy by having lots of sex

Diaz, who tied the knot with Good Charlotte rocker Benji Madden in January, recently spoke candidly with Cosmopolitan UK about staying fit through a strict combination of exercise, a healthy diet and lots of sex.

"It's something healthy that we need to be doing for many different reasons," she told the magazine about being sexually active.

More: Cameron Diaz: Making Annie For The Next Generation Was Awesome

Unfortunately, Diaz also admitted sleeping with her man isn't the only key to maintaining her killer figure. Exercise and eating healthy foods also play a rather important part.

"You have to just do it," she explained about getting motivated to work out. "Once you commit and really put in the effort, your body goes, 'Oh, it's not okay to be without this.' People say, 'My body rejects exercise.' No, it doesn't. Your mind rejects exercise."

But Diaz does treat herself from time to time, in fact she has figured out a solution that allows her to relax and indulge.

More: The Camerons - Kirk and Diaz - Dominate Razzies 2015

"Well-being is an equation," she explained. "Remember, you don't have to have the whole cake, you can have a piece. Don't deprive yourself. Have fun. Just be self-aware. If your equation is 80 percent good, 20 percent bad most of the time, then a little movement toward the center isn't going to affect you much."