“The prejudice and discrimination are definitely there, and that’s something we have consistently seen in the data,” Mr. Younis said. “But at the same time many of the people in the Muslim-American community seem to be doing relatively well, and part of their doing well is being able to be full-fledged Americans, to participate in the American experience.”

The poll found that Muslim Americans were the most likely of any religious group to express confidence in the fairness of elections. The researchers speculated that this might be because of their high levels of support for President Obama, who said early in his term that he would make it a priority to repair relationships with the Muslim world.

Since the terrorist attacks 10 years ago, Muslim Americans have been the target of intense scrutiny by the Federal Bureau of Investigation in counterterrorism investigations. Sixty percent of Muslims said in the survey that they had confidence in the F.B.I. That was fewer than those in other religious groups: about 75 percent of Americans in other religious groups said they had confidence in the F.B.I.

The sphere in which Muslim Americans were most critical of their country is in foreign policy. They are more likely than any other religious group to call the wars in Iraq and Afghanistan a mistake. Muslims also have the lowest level of confidence in the United States military of any faith group (70 percent for Muslims compared with more than 90 percent for all other religious groups, with the exception of atheists, with about 80 percent).

Two-thirds of Muslims who were asked the question said that the reason people in Muslim countries have unfavorable views of the United States was “based mostly on what the U.S. has done” — and not “based mostly on misinformation.”