A residency usually takes about three years. But doctors who want to specialize in some parts of the body like the brain, require more time to learn more and understand how such systems work properly.