Tofacitinib is used alone or with other medications to treat rheumatoid arthritis (condition in which the body attacks its own joints causing pain, swelling, and loss of function) in people who did not respond to methotrexate (otrexup, rasuvo, trexall).