The man infected at least two of his partners with the virus that leads to AIDS, the court heard.
He was convicted for aggravated assault, spreading a virus and for attempted aggravated assault for endangering the lives of others.
The identity of the man, who is not Swedish, has not been revealed but according to Dagens Nyheter newspaper he is from Zimbabwe.
He will be deported and will not be able to return to Sweden before January 1, 2018, a court official told AFP.
He was also sentenced to pay a fine of 267,000 Swedish kronor ($38,582) to the three women, according to Swedish news agency TT.
A doctor found out in March that several HIV-infected women had had sex with the man, according to TT.
An administrative court first sentenced the man to isolation earlier this year, where he was offered therapy sessions to make him understand the gravity of his acts.
After the isolation he was arrested and detained until the trial started last week.
“He does not have any excuses,” judge Sven Martinger said.
Other cases of men spreading AIDS have surfaced recently in Sweden and an inquiry has been launched about a 32-year-old HIV-positive man who could have had intercourse with hundreds of women.