Sundeep Khatkar, 33, had guns and drugs with a street value of more than £60,000 at his Sutton Coldfield home.
He admitted possession of firearms, ammunition and class A drugs with intent to supply, at Birmingham Crown Court on Monday.
West Midlands Police said among the haul were automatic pistols, a stun gun, cocaine and crack cocaine.
More on this and other Birmingham stories
Officers seized loaded 9mm Heckler and Kock and 8mm Baum automatic pistols, a stun gun, cocaine and crack cocaine, along with cash, mobile phones and scales from Khatkar's home in Walsall Road, Little Aston on 20 February.
Det Con Peter Miller said: "We take all investigations involving firearms extremely seriously.
"We will now be carrying out further investigations to regain Khatkar's ill-gotten gains to ensure he does not retain any profit from his drug dealing."
A drug dealer who kept loaded guns at his West Midlands home has been jailed for 12 years.