Shane Bauer and Josh Fattal, both 29, have been held in Iran's Evin Prison since shortly after their arrest along the border with Iraq exactly two years ago on Sunday.
Fattal grew up in Elkins Park, Montgomery County.
The case has added to tensions between the United States and Iran that were already high over issues like Tehran's disputed nuclear program.
The Americans' lawyer, Masoud Shafiei, had hoped that Sunday's final court session would result in their immediate release because it coincided with the two-year anniversary of their arrest and came near the start this week of the holy Muslim month of Ramadan, when pardons are traditionally handed down.
Shafiei said he and the two Americans presented closing arguments in their defense and the court announced the end of its hearings.
"The judge said the court will announce its verdict about my clients within one week," Shafiei told The Associated Press.
He said he was still hopeful that, if found guilty, they would be sentenced to time already served and released.
Bauer's fiancDee, Sarah Shourd, was arrested with them on July 31, 2009, but was released in September of last year on $500,000 bail. She did not return to Iran for the rest of the trial, but Shafiei said he delivered a defense for her as well on Sunday.
The Americans deny the charges and say they were only hiking in a scenic and largely peaceful area of northern Iraq near the Iranian border. While other parts of Iraq remain troubled by violence, the semiautonomous Kurdistan region has drawn tourists in recent years, including foreign visitors, to its scenic mountains.
"We are pleased that today's hearing was the final session in the case and now hope for an outcome that will bring freedom for Shane and Josh," the hikers' families said in a prepared statement. "We pray that the Iranian authorities will show compassion to Shane and Josh and we ask everyone who supports them and cares for them to join us in beseeching the grace of God at this important time."
The families said they would have no additional comment.
In a telephone interview on Saturday, Shafiei had expressed hope that Bauer and Fattal could be swiftly freed. One positive sign, he said, was that Shourd had not been summoned to appear for the final session as she had been for a previous hearing.
Shafiei suggested the court could convict the two but then sentence them to time served.
"They've spent two years of their life in jail in Iran, which will serve as their sentence," he said on Saturday.
Shafiei insisted the authorities have no evidence to prove espionage, and he pointed out the area where they were detained has a porous border.
"The espionage charge is irrelevant, and the charge of illegal entry is inconsistent with the facts. There was no clear border line and my clients are not guilty. I've provided a sufficient defense," he said.
The U.S. government has appealed for the two men to be released, insisting that they have done nothing wrong. The two countries have no direct diplomatic relations, so Washington has been relying on an interests section at the Swiss Embassy in Tehran to follow the case.
In Washington, U.S. State Department spokesman Mark Toner urged Iran to free the Americans.
"Shane and Josh have been imprisoned too long, and it is time to reunite them with their families," Toner said.
The three Americans are friends from their student days at the University of California-Berkeley.
Shourd, now 32, and Bauer got engaged in prison before she was released on what Iranian President Mahmoud Ahmadinejad said were humanitarian grounds following health issues.
They say they were vacationing in Iraqi Kurdistan when they went hiking near a scenic waterfall.
Shourd told the New York Times last November that they stepped off an unmarked dirt road, inadvertently crossing from Iraq into Iran only because a border guard of unknown nationality gestured for them to approach. She said they had no idea they were so close to the border.
Shourd is back living in Oakland, Calif. Bauer grew up in Onamia, Minn.