Mr. Justice White
delivered the opinion of the Court.
The petition for certiorari, which we granted, 396 U. S. 813 (1969), seeks reversal of three separate judgments of the Court of Appeals for the Second Circuit ordering hearings on petitions for habeas corpus filed by the respondents in this case. The principal issue before us is whether and to what extent an otherwise valid guilty plea may be impeached in collateral proceedings by assertions or proof that the plea was motivated by a prior coerced confession. We find ourselves in substantial disagreement with the Court of Appeals.
I
The three respondents now before us are Dash, Richardson, and Williams. We first state the essential facts involved as to each.
Dash: In February 1959, respondent Dash was charged with first-degree robbery which, because Dash had previously been convicted of a felony, was punishable by up to 60 years’ imprisonment. After pleading guilty to robbery in the second degree in April, he was sentenced to a term of eight to 12 years as a second-felony offender. His petition for collateral relief in the state courts in 1963 was denied without a hearing. Relief was then sought in the United States District Court for the Southern District of New York where his petition for habeas corpus alleged that his guilty plea was the illegal product of a coerced confession and of the trial judge’s threat to impose a 60-year sentence if he was convicted after a plea of not guilty. His petition asserted that he had been beaten, refused counsel, and threatened with false charges prior to his confession and that the trial judge’s threat was made during an off-the-record colloquy in one of Dash’s appearances in court prior to the date of his plea of guilty. Dash also asserted that his court-appointed attorney had advised pleading guilty since Dash did not “stand a chance due to the alleged confession signed” by him. The District Court denied the petition without a hearing because “a voluntary plea of guilty entered on advice of counsel constitutes a waiver of all nonjurisdictional defects in any prior stage of the proceedings against the defendant,” citing United States ex rel. Glenn v. McMann, 349 F. 2d 1018 (C. A. 2d Cir. 1965), cert. denied, 383 U. S. 915 (1966), and other cases. The allegation of coercion by the trial judge did not call for a hearing since the prosecutor had filed an affidavit in the state court categorically denying that the trial judge ever threatened the defendant. Dash then appealed to the Court of Appeals for the Second Circuit.
Richardson: Respondent Richardson was indicted in April 1963 for murder in the first degree. Two attorneys were assigned to represent Richardson. He initially pleaded not guilty but in July withdrew his plea and pleaded guilty to murder in the second degree, specifically admitting at the time that he struck the victim with a knife. He was convicted and sentenced to a term of 30 years to life. Following the denial without a hearing of his application for collateral relief in the state courts, Richardson filed his petition for habeas corpus in the United States District Court for the Northern District of New York, alleging in conclusory fashion that his plea of guilty was induced by a coerced confession and by ineffective court-appointed counsel. His petition was denied without a hearing, and he appealed to the Court of Appeals for the Second Circuit, including with his appellate brief a supplemental affidavit in which he alleged that he was beaten into confessing the crime, that his assigned attorney conferred with him only 10 minutes prior to the day the plea of guilty was taken, that he advised his attorney that he did not want to plead guilty to something he did not do, and that his attorney advised him to plead guilty to avoid the electric chair, saying that “this was not the proper time to bring up the confession” and that Richardson “could later explain by a writ of habeas corpus how my confession had been beaten out of me.”
Williams: In February 1956, respondent Williams was indicted for five felonies, including rape and robbery. He pleaded guilty to robbery in the second degree in March and was sentenced in April to a term of 7y2 to 15 years. After unsuccessful applications for collateral relief in the state courts, he petitioned for a writ of habeas corpus in the United States District Court for the Southern District of New York, asserting that his plea was the consequence of a coerced confession and was made without an understanding of the nature of the charge and the consequences of the plea. In his petition and in documents supporting it, allegations were made that he had been handcuffed to a desk while being interrogated, that he was threatened with a pistol and physically abused, and that his attorney, in advising him to plead guilty, ignored his alibi defense and represented that his plea would be to a misdemeanor charge rather than to a felony charge. The petition was denied without a hearing and Williams appealed.
The Court of Appeals for the Second Circuit reversed in each case, sitting en banc and dividing six to three in Dash's case and disposing of Richardson's and Williams' cases in decisions by three-judge panels. In each case it was directed that a hearing be held on the petition for habeas corpus. It was the Court of Appeals’ view that a plea of guilty is an effective waiver of pretrial irregularities only if the plea is voluntary and that a plea is not voluntary if it is the consequence of an involuntary confession. That the petitioner was represented by counsel and denied the existence of coercion or promises when tendering his plea does not foreclose a hearing on his petition for habeas corpus alleging matters outside the state court record. Although conclusory allegations would in no case suffice, the allegations in each of these cases concerning the manner in which the confession was coerced and the connection between the confession and the plea were deemed sufficient to require a hearing. The law required this much, the Court of Appeals thought, at least in New York, where prior to Jackson v. Denno, 378 U. S. 368 (1964), constitutionally acceptable procedures were unavailable to a defendant to test the voluntariness of his confession. The Court of Appeals also ordered a hearing in each case for reasons other than that the plea was claimed to rest on a coerced confession which the defendant had no adequate opportunity to test in the state courts. In the Dash case, the additional issue to be considered was whether the trial judge coerced the guilty plea by threats as to the probable sentence after trial and conviction on a plea of not guilty; in Richardson, the additional issue was the inadequacy of counsel allegedly arising from the short period of consultation and counsel’s advice to the effect that the confession issue could be raised after a plea of guilty; and in Williams, the additional question was the alleged failure of counsel to consider Williams’ alibi defense and to make it clear that he was pleading to a felony rather than to a misdemeanor.
II
The core of the Court of Appeals’ holding is the proposition that if in a collateral proceeding a guilty plea is shown to have been triggered by a coerced confession— if there would have been no plea had there been no confession — the plea is vulnerable at least in cases coming from New York where the guilty plea was taken prior to Jackson v. Denno, supra. We are unable to agree with the Court of Appeals on this proposition.
A conviction after a plea of guilty normally rests on the defendant’s own admission in open court that he committed the acts with which he is charged. Brady v. United States, ante, at 748; McCarthy v. United States, 394 U. S. 459, 466 (1969). That admission may not be compelled, and since the plea is also a waiver of trial— and unless the applicable law otherwise provides, a waiver of the right to contest the admissibility of any evidence the State might have offered against the defendant- — it must be an intelligent act “done with sufficient awareness of the relevant circumstances and likely consequences.” Brady v. United States, ante, at 748.
For present purposes, we put aside those cases where the defendant has his own reasons for pleading guilty wholly aside from the strength of the case against him as well as those cases where the defendant, although he would have gone to trial had he thought the State could not prove its case, is motivated by evidence against him independent of the confession. In these cases, as the Court of Appeals recognized, the confession, even if coerced, is not a sufficient factor in the plea to justify relief. Neither do we have before us the uncounseled defendant, see Pennsylvania ex rel. Herman v. Claudy, 350 U. S. 116 (1956), nor the situation where the circumstances that coerced the confession have abiding impact and also taint the plea. Cf. Chambers v. Florida, 309 U. S. 227 (1940). It is not disputed that in such cases a guilty plea is properly open to challenge.
The issue on which we differ with the Court of Appeals arises in those situations involving the counseled defendant who allegedly would put the State to its proof if there was a substantial enough chance of acquittal, who would do so except for a prior confession that might be offered against him, and who because of the confession decides to plead guilty to save himself the expense and agony of a trial and perhaps also to minimize the penalty that might be imposed. After conviction on such a plea, is a defendant entitled to a hearing, and to relief if his factual claims are accepted, when his petition for habeas corpus alleges that his confession was in fact coerced and that it motivated his plea? We think not if he alleges and proves no more than this.
Ill
Since we are dealing with a defendant who deems his confession crucial to the State’s case against him and who would go to trial if he thought his chances of acquittal were good, his decision to plead guilty or not turns on whether he thinks the law will allow his confession to be used against him. For the defendant who considers his confession involuntary and hence unusable against him at a trial, tendering a plea of guilty would seem a most improbable alternative. The sensible course would be to contest his guilt, prevail on his confession claim at trial, on appeal, or, if necessary, in a collateral proceeding, and win acquittal, however guilty he might be. The books are full of cases in New York and elsewhere, where the defendant has made this choice and has prevailed. If he nevertheless pleads guilty the plea can hardly be blamed on the confession which in his view was inadmissible evidence and no proper part of the State’s case. Since by hypothesis the evidence aside from the confession is weak and the defendant has no reasons of his own to plead, a guilty plea in such circumstances is nothing less than a refusal to present his federal claims to the state court in the first instance— a choice by the defendant to take the benefits, if any, of a plea of guilty and then to pursue his coerced-confession claim in collateral proceedings. Surely later allegations that the confession rendered his plea involuntary would appear incredible, and whether his plain bypass of state remedies was an intelligent act depends on whether he was so incompetently advised by counsel concerning the forum in which he should first present his federal claim that the Constitution will afford him another chance to plead.
A more credible explanation for a plea of guilty by a defendant who would go to trial except for his prior confession is his prediction that the law will permit his admissions to be used against him by the trier of fact. At least the probability of the State’s being permitted to use the confession as evidence is sufficient to convince him that the State’s case is too strong to contest and that a plea of guilty is the most advantageous course. Nothing in this train of events suggests that the defendant’s plea, as distinguished from his confession, is an involuntary act. His later petition for collateral relief asserting that a coerced confession induced his plea is at most a claim that the admissibility of his confession was mistakenly assessed and that since he was erroneously advised, either under the then applicable law or under the law later announced, his plea was an unintelligent and voidable act. The Constitution, however, does not render pleas of guilty so vulnerable.
As we said in Brady v. United States, ante, at 766-757, the decision to plead guilty before the evidence is in frequently involves the making of difficult judgments. All the pertinent facts normally cannot be known unless witnesses are examined and cross-examined in court. Even then the truth will often be in dispute. In the face of unavoidable uncertainty, the defendant and his counsel must make their best judgment as to the weight of the State’s case. Counsel must predict how the facts, as he understands them, would be viewed by a court. If proved, would those facts convince a judge or jury of the defendant’s guilt? On those facts would evidence seized without a warrant be admissible? Would the trier of fact on those facts find a confession voluntary and admissible? Questions like these cannot be answered with certitude; yet a decision to plead guilty must necessarily rest upon counsel’s answers, uncertain as they may be. Waiving trial entails the inherent risk that the good-faith evaluations of a reasonably competent attorney will turn out to be mistaken either as to the facts or as to what a court’s judgment might be on given facts.
That a guilty plea must be intelligently made is not a requirement that all advice offered by the defendant’s lawyer withstand retrospective examination in a post-conviction hearing. Courts continue to have serious differences among themselves on the admissibility of evidence, both with respect to the proper standard by which the facts are to be judged and with respect to the application of that standard to particular facts. That this Court might hold a defendant’s confession inadmissible in evidence, possibly by a divided vote, hardly justifies a conclusion that the defendant’s attorney was incompetent or ineffective when he thought the admissibility of the confession sufficiently probable to advise a plea of guilty.
In our view a defendant’s plea of guilty based on reasonably competent advice is an intelligent plea not open to attack on the ground that counsel may have misjudged the admissibility of the defendant’s confession. Whether a plea of guilty is unintelligent and therefore vulnerable when motivated by a confession erroneously thought admissible in evidence depends as an initial matter, not on whether a court would retrospectively consider counsel’s advice to be right or wrong, but on whether that advice was ¿within the range of competence demanded of attorneys in criminal casesTJ On the one hand, uncertainty is inherent in predicting court decisions; but on the other hand defendants facing felony charges are entitled to the effective assistance of competent counsel. Beyond this we think the matter, for the most part, should be left to the good sense and discretion of the trial courts with the admonition that if the right to counsel guaranteed by the Constitution is to serve its purpose, defendants cannot be left to the mercies of incompetent counsel, and that judges should strive to maintain proper standards of performance by attorneys who are representing defendants in criminal cases in their courts.
IY
We hold, therefore, that a defendant who alleges that he pleaded guilty because of a prior coerced confession is not, without more, entitled to a hearing on his petition for habeas corpus. Nor do we deem the situation substantially different where the defendant’s plea was entered prior to Jackson v. Denno, 378 U. S. 368 (1964). At issue in that case was the constitutionality of the New York procedure for determining the voluntariness of a confession offered in evidence at a jury trial. This procedure, which would have been applicable to the respondents if they had gone to trial, required the trial judge, when the confession was offered and a prima facie case of voluntariness established, to submit the issue to the jury without himself finally resolving disputed issues of fact and determining whether or not the confession was voluntary. The Court held this procedure unconstitutional because it did not “afford a reliable determination of the voluntariness of the confession offered in evidence at the trial, did not adequately protect Jackson’s right to be free of a conviction based upon a coerced confession and therefore cannot withstand constitutional attack under the Due Process Clause of the Fourteenth Amendment.” 378 U. S., at 377. In reaching that conclusion, the Court overruled Stein v. New York, 346 U. S. 156 (1953), which had approved the New York practice.
Whether- a guilty plea was entered before or after Jackson v. Denno, the question of the validity of the plea remains the same: was the plea a voluntary and intelligent act of the defendant? As we have previously set out, a plea of guilty in a state court is not subject to collateral attack in a federal court on the ground that it was motivated by a coerced confession unless the defendant was incompetently advised by his attorney. For the respondents successfully to claim relief based on Jackson v. Denno, each must demonstrate gross error on the part of counsel when he recommended that the defendant plead guilty instead of going to trial and challenging the New York procedures for determining the admissibility of confessions. Such showing cannot be made, for precisely this challenge was presented to the New York courts and to this Court in Stein v. New York, supra, and in 1953 this Court found no constitutional infirmity in the New York procedures for dealing with coerced-confession claims. Counsel for these respondents cannot be faulted for not anticipating Jackson v. Denno or for considering the New York procedures to be as valid as the four dissenters in that case thought them to be.
We are unimpressed with the argument that because the decision in Jackson has been applied retroactively to defendants who had previously gone to trial, the defendant whose confession allegedly caused him to plead guilty prior to Jackson is also entitled to a hearing on the voluntariness of his confession and to a trial if his admissions are held to have been coerced. A conviction after trial in which a coerced confession is introduced rests in part on the coerced confession, a constitutionally unacceptable basis for conviction. It is that conviction and the confession on which it rests that the defendant later attacks in collateral proceedings. The defendant who pleads guilty is in a different posture. He is convicted on his counseled admission in open court that he committed the crime charged against him. The prior confession is not the basis for the judgment, has never been offered in evidence at a trial, and may never be offered in evidence. Whether or not the advice the defendant received in the pre-Jackson era would have been different had Jackson then been the law has no bearing on the accuracy of the defendant’s admission that he committed the crime.
What is at stake in this phase of the case is not the integrity of the state convictions obtained on guilty pleas, but whether, years later, defendants must be permitted to withdraw their pléas, which were perfectly valid when made, and be given another choice between admitting their guilt and putting the State to its proof. It might be suggested that if Jackson had been the law when the pleas in the cases below were made — if the judge had been required to rule on the voluntariness of challenged confessions at a trial — there would have been a better chance of keeping the confessions from the jury and there would have been no guilty pleas. But because of inherent uncertainty in guilty-plea advice, this is a highly speculative matter in any particular case and not an issue promising a meaningful and productive evi-dentiary hearing long after entry of the guilty plea. The alternative would be a per se constitutional rule invalidating all New York guilty pleas that were motivated by confessions and that were entered prior to Jackson. This would be an improvident invasion of the State’s interests in maintaining the finality of guilty-plea convictions that were valid under constitutional standards applicable at the time. It is no denigration of the right to trial to hold that when the defendant waives his state court remedies and admits his guilt, he does so under the law then existing; further, he assumes the risk of ordinary error in either his or his attorney’s assessment of the law and facts. Although he might have pleaded differently had later decided cases then been the law, he is bound by his plea and his conviction unless he can allege and prove serious derelictions on the part of counsel sufficient to show that his plea was not, after all, a knowing and intelligent act.
Y
As we have previously indicated, in each case below the Court of Appeals ruled that a hearing was required to consider claims other than the claim that the plea of guilty rested on a coerced confession and was entered prior to Jackson v. Denno, supra. With respect to these other claims, we now express no disagreement with the judgments of the Court of Appeals; but since our holding will require reassessment of the petitions for habeas corpus in the light of the standards expressed herein, the judgments of the Court of Appeals are vacated and the case is remanded to that court for further proceedings consistent with this opinion.
It is so ordered.
Mb. Justice Black, while still adhering to his separate opinion in Jackson v. Denno, 378 U. S. 368, 401-423, concurs in the Court’s opinion and judgment in this case.
Our grant of certiorari also included a fourth respondent, another petitioner for habeas corpus, Wilbert Ross. See n. 7, infra. However, upon consideration of a subsequent suggestion of mootness by reason of Ross’ death, we vacated the Court of Appeals’ judgment and remanded to the District Court for the Eastern District of New York with directions to dismiss the petition for habeas corpus as moot. 396 U. S. 118 (1969).
N. Y. Penal Law § 2125, then in effect, provided that first-degree robbery was punishable by imprisonment for an indeterminate term the minimum of which was to be not less than 10 years and the maximum of which was to be not more than 30 years. Under N. Y. Penal Law § 1941, subd. 1, then in effect, conviction for a second felony was punishable by imprisonment for an indeterminate term with the minimum one-half the maximum set for a first conviction and the maximum twice the maximum set for a first conviction.
In addition to the first-degree robbery charge, Dash was also charged with grand larceny and assault.
Waterman and Devine, two men accused of taking part in the robbery along with Dash, did not plead guilty; after a jury trial they were convicted of first-degree robbery, second-degree grand larceny, and second-degree assault and were sentenced to 15 to 20 years’ imprisonment. On appeal these convictions were reversed because of the State’s use of post-indictment confessions given by one of the defendants in the absence of counsel. People v. Waterman, 12 App. Div. 2d 84, 208 N. Y. S. 2d 596 (1960), aff’d, 9 N. Y. 2d 561, 175 N. E. 2d 445 (1961). Waterman and Devine then pleaded guilty to assault in the second degree and were sentenced to imprisonment for 2% to 3 years.
The denial of relief was affirmed h}*- the Appellate Division of the New York Supreme Court, People v. Dash, 21 App. Div. 2d 978, 252 N. Y. S. 2d 1016 (1964), aff’d mem., 16 N. Y. 2d 493, 208 N.E. 2d 171 (1965).
The denial of relief was affirmed without opinion, by the Appellate Division of the New York Supreme Court, People v. Richardson, 23 App. Div. 2d 969, 260 N. Y. S. 2d 586 (1965).
The denial of relief on the claims later presented in the Federal District Court was affirmed without opinion by the Appellate Division of the New York Supreme Court, People v. Williams, 25 App. Div. 2d 620, 268 N. Y. S. 2d 958 (1966).
United States ex rel. Ross v. McMann, 409 F. 2d 1016 (C. A. 2d Cir. 1969). The Court of Appeals’ opinion dealt also with the appeal of Wilbert Ross from a denial of habeas corpus without a hearing by the United States District Court for the Eastern District of New York. Ross in his habeas petition alleged that his 1955 plea of guilty to second-degree murder was induced by the State’s possession of an unconstitutionally obtained confession. The Court of Appeals held that, like Dash, Ross was entitled to a hearing on his claims. Along with the three respondents dealt with in this opinion, we granted certiorari as to Ross but the matter was subsequently remanded for dismissal as moot after the death of Ross. See n. 1, supra.
United States ex rel. Richardson v. McMann, 408 F. 2d 48 (C. A. 2d Cir. 1969); United States ex rel. Williams v. Follette, 408 F. 2d 658 (C. A. 2d Cir. 1969).
The same day that the Court of Appeals ordered hearings in the Dash and Richardson cases, the court, en banc and without dissent, held that a hearing was not required in the case of a petitioner for habeas corpus who had pleaded guilty after a trial judge ruled that his confession was admissible in evidence — the Court of Appeals found that the petition for habeas corpus did not allege with sufficient specificity that the plea of guilty was infected by the allegedly coerced confession. United States ex rel. Rosen v. Follette, 409 F. 2d 1042 (C. A. 2d Cir. 1969).
The majority and concurring opinions in the Dash case relied on decisions in several other circuits: United States ex rel. Collins v. Maroney, 382 F. 2d 547 (C. A. 3d Cir. 1967); Jones v. Cunningham, 297 F. 2d 851 (C. A. 4th Cir. 1962); Smith v. Wainwright, 373 F. 2d 506 (C. A. 5th Cir. 1967); Carpenter v. Wainwright, 372 F. 2d 940 (C. A. 5th Cir. 1967); Bell v. Alabama, 367 F. 2d 243 (C. A. 5th Cir. 1966), cert. denied, 386 U. S. 916 (1967); Reed v. Henderson, 385 F. 2d 995 (C. A. 6th Cir. 1967); Smiley v. Wilson, 378 F. 2d 144 (C. A. 9th Cir. 1967); Doran v. Wilson, 369 F. 2d 505 (C. A. 9th Cir. 1966).
New York law now permits a defendant to. challenge the admissibility of a confession in a pretrial hearing and to appeal from an adverse ruling on the admissibility of the confession even if the conviction is based on a plea, of guilty. N. Y. Code Crim. Proc. § 813-g (Supp. 1969) (effective July 16, 1965). A similar provision permits a defendant to appeal an adverse ruling on a Fourth Amendment claim after a plea of guilty. N. Y. Code Crim. Proc. § 813-c (Supp. 1969) (effective April 29, 1962).
Pennsylvania ex rel. Herman v. Claudy, 350 U. S. 116 (1956), involved a plea of guilty made by a defendant without assistance of counsel. Herman did not hold that a plea of guilty, offered by a defendant assisted by competent counsel, is invalid whenever induced by the prosecution’s possession of a coerced confession. Likewise, Chambers v. Florida, 309 U. S. 227 (1940), does not support the position taken by the Court of Appeals in these cases. In Chambers the voluntariness of the confessions was properly considered by this Court both because the alleged coercion producing the confessions appeared to carry over to taint the guilty pleas and because the convictions were based on the confessions as well as the guilty pleas. See Chambers v. State, 136 Fla. 568, 187 So. 156 (1939), rev’d, 309 U. S. 227 (1940).
We do not here consider whether a conviction, based on a plea of guilty entered in a State permitting the defendant pleading guilty to challenge on appeal the admissibility of his confession (as in New York after July 16, 1965, see n. 11, supra), would be open to attack in federal habeas corpus proceedings on the grounds that the confession was coerced. Cf. United States ex rel. Rogers v. Warden, 381 F. 2d 209 (C. A. 2d Cir. 1967).
Since Gideon v. Wainwright, 372 U. S. 335 (1963), it has been clear that a defendant pleading guilty to a felony charge has a federal right to the assistance of counsel. See White v. Maryland, 373 U. S. 59 (1963); Arsenault v. Massachusetts, 393 U. S. 5 (1968). It has long been recognized that the right to counsel is the right to the effective assistance of counsel. See Reece v. Georgia, 350 U. S. 85, 90 (1955); Glasser v. United States, 315 U. S. 60, 69-70 (1942); Avery v. Alabama, 308 U. S. 444, 446 (1940); Powell v. Alabama, 287 U. S. 45, 57 (1932).