Would-be daddies should hit the bottle immediately.

Beer-guzzling guys can increase their chances of becoming a father if they drink a few beers each day, a new study shows.

But while the booze helped men get their gals pregnant, downing a few cups of coffee each day cut the guys’ chances of making a baby, according to the study done by Massachusetts General Hospital.

The study examined more than 100 men at the hospital whose partners were undergoing in vitro fertilization between 2007 and 2013, according to London’s Telegraph.

Dudes who downed at least a pint and a half each day were more than twice as likely to have children through IVF than those who stayed stone-cold sober.

Java drinkers, however, showed the opposite effect. Men who drank more than two cups of joe each morning had their chances of becoming fathers cut drastically to just 1 in 5.

Click for more from the New York Post.