The 87-year-old judge underwent non-surgical treatment for what the court described as acute cholecystitis, a mild condition of the gallbladder, at Johns Hopkins Hospital in Baltimore, Maryland.
She is resting comfortably and hopes to be in hospital for a day or two, the court said.
Ginsburg participated in the court pleadings Monday and Tuesday. She first sought medical attention on Monday when gallstones was first diagnosed.
She was treated for cancer four times, most recently in August, when she underwent radiation therapy for a tumor on her pancreas.
Her last hospital stay was in November, when she spent two nights at Johns Hopkins with probable infection after suffering from chills and fever.
The fragile-looking liberal icon also rebounded after lung surgery to remove cancerous tumors in December 2018. Her recovery from the surgery forced her to miss court cases for the first time since becoming a judge in 1993, appointed by President Bill Clinton.
She did her usual training with a personal trainer in court, although the judges overturned the arguments in favor of the telephone sessions due to the coronavirus pandemic.
Ginsburg said she would like to serve until her 90s, if her health permits.