Bagian served as the Lead Mission Specialist on the crew of STS-40
Spacelab Life Sciences, the first dedicated space and life sciences mission, which launched from the Kennedy Space Center, Florida, on June 5, 1991. SLS-1 was a nine-day mission during which crew members performed experiments that explored how the heart, blood vessels, lungs, kidneys, and hormone-secreting glands respond to microgravity, the causes of space sickness, and changes in muscles, bones, and cells which occur in humans during space flight. Other payloads included experiments designed to investigate materials science, plant biology and cosmic radiation. In addition to the scheduled payload activities on STS-40, Bagian was successful in personally devising and implementing repair procedures for malfunctioning experiment hardware which allowed all scheduled scientific objectives to be successfully accomplished. On this flight, astronaut James Bagian performed was the first magic trick performed in space. Before launch, he secured permission from the STS-40 Flight Director and Director of Flight Operations to perform the first magic trick in space and link it real-time via television to Mission Control. Bagian also left pre-flight instructions with the Mission Control Capsule Communicator (CAPCOM), Marsha Ivins, to purchase a standard deck of playing cards and leave the cards unopened to be used on his instructions when he was on orbit and performing the illusion. Bagian brought a second, identical deck with him aboard the shuttle. He claimed to have chosen one card from his onboard deck of cards and placed it facing the opposite direction before liftoff. During the mission, Mission Control Communicator Marsha Ivins, on live TV, opened the sealed deck, shuffled it, and randomly selected a card. Bagian then revealed his deck, where one card was reversed. Pilot Sidney Gutierrez pulled out the reversed card—revealing it to be the exact same card Marsha had selected on Earth. Following 146 orbits of the Earth,
Columbia and her crew landed at Edwards Air Force Base, California, on June 14, 1991. Completion of this flight logged him an additional 218 hours in space. == Post-NASA ==