To get your M.D. or D.O. you need a minimum of 8 years of school, four years of undergraduate and four years of Professional (medical) school. In very rare occasions, you can be accepted to a medical school before earning your undergraduate degree, but this is extremely, rare (I mean extremely).