Soma and Tramadol are schedule IV analgesic that is used to treat muscle discomfort that occurs due to various reasons. Soma pill with the onset of action 30 minutes treats short-term acute pain. Later it can be used for severe chronic pain. The effect of the Soma pill lasts for 5 to 6 hours in the body. Whereas, Tramadol is comparatively slower than the Soma pill with an onset of action of one hour. The peak concentration of the drug in the body reaches within 2 to 4 hours. Immediate release formulation of Tramadol lasts for 4 to 6 hours, whereas, the external-release formulation stays for 12 to 24 hours.
In short, Soma is a more effective treatment for short-term pain than Tramadol. Also, Soma analgesics are much cheaper than Tramadol.
For a more detailed comparison, read this blog- https://healthnaturo.com/carisoprodol-vs-tramadol/