The 22-year-old man was convicted of "participation in a terrorist organization," financing terrorism, and three counts of foreign travel for terrorism purposes, the court said in a statement.
According to the court, all charges were related to IS, and all three trips were to Somalia.
Sweden has been adopting tougher anti-terror laws since 2017, after an Uzbek asylum seeker who had sworn allegiance to IS drove a truck down a busy shopping street in Stockholm, killing five people.