Weinberg was born in Stuttgart and studied medicine at Tübingen and Munich, receiving an M.D. in 1886. He returned to Stuttgart in 1889, where he remained running a large practice as a gynecologist and obstetrician until he retired to Tübingen a few years before his death in 1937. Much of his academic life was spent studying genetics, especially on applying the laws of inheritance in populations.