Tobey Maguire has splashed out almost $13 million on a new bachelor pad.

The 41-year-old actor recently split from Jennifer Mayer after nine years of marriage and after they sold their Santa Monica home for $3 million, Tobey spent $12,995,000 on a luxury home in Brentwood, California.

Trulia reports that the six-bedroom, nine-bathroom residence has a wine cellar, gym, library, and barbecue area and an infinity pool.

Tobey and Jennifer announced their split last month and said their two children - Ruby, nine, and Otis, seven - are their top priority.

In a joint statement, they said: ''After much soul searching and consideration we have made the decision to separate as a couple.

''As devoted parents, our first priority remains raising our children together with enduring love, respect and friendship.''

The couple tied the knot in 2007 - four years after they met - in a ceremony in Hawaii in front of their close family and friends.

The actor has remained tight-lipped about his personal life throughout his career but previously gave an insight into their family life.

Speaking about welcoming their first child, he said at the time: ''It's a very dramatic change. My whole life is in transition now with friendships and where I'm gonna live, you know? Just your whole perspective. It's great. Ruby's so adorable. She's just a smiley, little beautiful thing.''

When the pair were preparing to tie the knot, Jennifer was thrilled, dubbing it the ''best time of her life''.

She shared: ''Let's just say this is truly the best time of my life. I'm walking on air. I'm getting married, starting a family and have an amazing company.''

Tobey also opened up about wanting ''security and comfort'' in his life following a rocky childhood.

He explained at the time: ''Growing up the way I did, I had a very serious ambition to make some money, to have some security and comfort in my life.''