Heinz Kerry, 74, was flown to a Boston hospital Sunday after first being taken to by ambulance to a hospital on Nantucket, where the couple has a home.
"After conducting tests overnight and this morning, doctors at Massachusetts General Hospital have upgraded Mrs. Teresa Heinz Kerry's condition from critical to fair," Kerry spokesman Glen Johnson said in a statement.
Heinz Kerry is undergoing further evaluation, Johnson said. He added that her husband and other family members were with her at the hospital and the family was touched by the outpouring of well wishes.
Heinz Kerry showed symptoms consistent with a seizure, said a person in close contact with the family who was not authorized to speak publicly about Heinz Kerry's condition and spoke on condition of anonymity.
Heinz Kerry was treated for breast cancer in late 2009 and has said she found out that she had cancer in her left breast after having an annual mammogram.
A month later, she underwent lumpectomies on both breasts after doctors also discovered what they thought was a benign growth on her right breast.
That diagnosis was initially confirmed in postoperative pathology, but two other doctors later found it to be malignant. She later had another pair of lumpectomies performed.
Heinz Kerry is the widow of former U.S. Sen. John Heinz and heir to the Heinz ketchup fortune. Heinz died in 1991 when a helicopter collided with a plane over a schoolyard in Merion, Pa. The senator was among seven people, including two children, who died in the crash.
Heinz Kerry and John Kerry married in 1995.
She enthusiastically participated in her husband's campaign for president in 2004 and became known for her strong opinions, sometimes attracting as much attention as the candidate.
Kerry accompanied his wife to the Boston hospital Sunday night and later went to his nearby home on Beacon Hill. He left the home shortly after 8 a.m. Monday and returned to the hospital by motorcade.
Before Sunday's emergency, John Kerry had been at the Nantucket home since returning from a nearly two-week, around-the-world diplomatic trip to the Mideast and Southeast Asia in the pre-dawn hours of July 3.
Before his wife's medical problem, he had planned to return Monday to Washington, where he and Treasury Secretary Jack Lew were to co-host high-level strategic and economic talks with senior Chinese officials on Wednesday and Thursday.
Kerry had also spoken of his desire to travel to Israel starting at the end of the week for what would be his sixth trip there as secretary. State Department officials said Kerry's schedule may now change depending on his wife's health.
Lee reported from Washington. Associated Press writer Bob Salsberg in Boston contributed.
Copyright 2013 The Associated Press.