Ginsburg's health is closely watched because another Supreme Court vacancy would give President Donald Trump the opportunity to appoint a third justice to the nine-member court and move it further to the right.
The court said Ginsburg received intravenous antibiotics and fluids and that her symptoms abated.
Ginsburg was treated over the summer for a cancerous tumor on her pancreas, and she underwent surgery last winter for lung cancer. The court's 5-4 conservative majority includes two justices named by Trump.
She was treated for colon cancer in 1999, and a decade later, pancreatic cancer that was caught at an early stage.
"She is home and doing well", the court said in a statement.
She recently missed a day of oral arguments at the court with what a spokeswoman called a stomach bug.
Ginsburg has been sidelined with injuries and hospital visits over the last year, including a year ago when she fell in her office at the Court. If Ginsburg leaves the court before the 2020 presidential election, President Donald Trump will get to choose her successor, and would be expected to select a conservative judge who would push the bench even further to the right than it has been since the retirement of "swing vote" Associate Justice Anthony Kennedy a year ago.
Ginsburg has had four occurrences of cancer, including two in the past year.
The U.S. Supreme Court in Washington on February 5, 2009.
'This latest has been my fourth cancer battle and I found each time that when I'm active, I'm much better than if I'm just lying about and feeling sorry for myself, ' she said in September, in NY, at an event hosted by Moment Magazine.
"This audience can see that I am alive".
"I love my job. And I'm on my way to being very well", she said, according to CNN.