WASHINGTON — Justice Ruth Bader Ginsburg was released from the hospital on Sunday after treatment for chills and a fever, a Supreme Court spokeswoman said. “She is home and doing well,” said the spokeswoman, Kathleen Arberg.

Justice Ginsburg’s symptoms abated after treatment with intravenous antibiotics and fluids, Ms. Arberg said. The justice had been admitted to Johns Hopkins Hospital in Baltimore on Friday night after an initial evaluation at Sibley Memorial Hospital in Washington.

Justice Ginsburg, 86, has had surgery for lung cancer and radiation treatment for pancreatic cancer in the past year. Over the years, she has also had surgery for early-stage pancreatic cancer in 2009 and treatment for colon cancer in 1999.

Justice Ginsburg is the senior member of the court’s four-member liberal wing. She has repeatedly vowed to stay on the court as long as her health holds and she remains mentally sharp.