
Entering a guilty or no contest plea seemed like the right decision at the time, but now you realize the consequences are more severe than you understood. Filing a motion to withdraw a plea in California can provide a second chance to contest your charges when good cause exists. Whether you lacked proper legal representation, faced coercion, or didn't fully understand the implications of your plea, withdrawing it may be possible. This guide walks you through the eligibility requirements, legal grounds, step-by-step filing process, and what to expect during court proceedings.
A motion to withdraw a plea is a formal legal request that asks the court to allow you to take back a guilty or no contest plea you previously entered in a criminal case. California Penal Code Section 1018 grants defendants this right in both misdemeanor and felony cases. The statute recognizes that not every plea is entered knowingly, intelligently, and voluntarily.
When the court grants your motion, the criminal case effectively rewinds to its original status before you entered the plea. You receive the opportunity to withdraw your prior plea and substitute it with a plea of not guilty. In effect, the case returns to the stage before the plea was entered, allowing you to either renegotiate or proceed to trial.
The statute directs judges to construe the provision liberally to promote justice, recognizing that the integrity of a conviction depends on a knowing, intelligent, and voluntary waiver of constitutional trial rights. Note that withdrawing a plea is not automatic. Regret alone does not satisfy the legal standard. You must present legally recognized grounds supported by evidence.
California Penal Code 1018 establishes specific timeframes for filing a motion to withdraw a plea. You may file the motion at any time before judgment, or within six months after an order granting probation is made if entry of judgment is suspended. These timing rules are rigid, and missing the six-month window usually forecloses relief under the statute.
A motion filed pre-sentencing falls entirely within the court's jurisdiction and receives assessment under the liberal good cause standard. Once judgment is suspended and probation granted, the six-month clock begins to run. If you have already been sentenced to prison, Penal Code 1018 generally no longer applies. Withdrawing a guilty plea after sentencing becomes a much more complex process and could require submitting a petition for a writ of habeas corpus or a petition under PC 1473.7.
You file a motion to withdraw a plea when you realize that pleading guilty or no contest is not in your best interest. The court requires that you show good cause, which means a legal reason or excuse demonstrating why your request should be granted. Good cause exists when you entered a plea as the result of mistake, ignorance, duress, fraud, or any other factor overcoming the exercise of your free judgment.
You must establish good cause by clear and convincing evidence. Common scenarios include discovering you will incur an unexpected penalty that was not explained during the plea process. For example, you may not have realized your driving privilege would be suspended by the Department of Motor Vehicles, or that the guilty plea would lead to deportation or other adverse immigration consequences.
Other qualifying situations include entering a plea while under the influence of drugs or alcohol, not being advised of constitutional rights before taking the plea, being pressured or threatened into entering a plea, or discovering that the prosecutor withheld exculpatory evidence which could have exonerated you. You might also seek withdrawal if you believe you were represented by an incompetent lawyer or were the victim of ineffective assistance of counsel.
Correspondingly, when a plea bargain gets violated because the prosecutor or judge denied you proposed terms of the deal, withdrawal becomes an appropriate remedy. The burden of proof rests on you as the moving party. However, the policy remains remedial: if fundamental fairness was compromised, the conviction should not stand.


Get personalized defense strategies tailored to your case.
Proving good cause represents the central requirement for withdrawing a plea under California Penal Code 1018. Courts demand that you demonstrate your plea resulted from mistake, ignorance, inadvertence, or another factor that overcame your free judgment. The burden falls on you to establish good cause by clear and convincing evidence, meaning you must prove it is substantially more likely than not that you would have rejected the plea had you known all relevant facts.
Good cause exists when factors beyond simple regret influenced your decision to plead guilty or no contest. California courts have identified recurring fact patterns that meet this standard. The plea must have been entered without full knowledge of charges and potential penalties, or under circumstances that impaired your ability to make an informed decision. Courts construe the statute liberally to promote justice, yet they will not allow withdrawal simply because you changed your mind or dislike the consequences.
You can establish good cause by showing you entered a plea while representing yourself and the judge failed to confirm you understood your right to counsel. The key factor centers on whether the judge provided proper instructions about your right to an attorney. When you represent yourself without the court explaining this fundamental right, the plea becomes vulnerable to withdrawal. Note that if the judge explicitly advised you of your right to a lawyer and you waived it unequivocally, this ground will not succeed.
Courts frequently grant motions when you were not aware of significant sentencing consequences at the time of pleading. Three scenarios arise most often: mandatory jail or prison time that was not disclosed, professional licensing suspension or revocation that affects your livelihood, and immigration consequences. California Penal Code Section 1016.5 specifically protects immigrants who plead guilty without understanding that the conviction could lead to deportation, denial of naturalization, or exclusion from the United States. When neither your attorney nor the court clearly advised you of these risks, withdrawal becomes possible if you can show a reasonable probability you would have rejected the plea. Courts require robust legal arguments and irrefutable evidence proving your case did not meet immigration warning requirements.
A plea entered under threats, coercion, or undue pressure lacks voluntariness. Courts grant withdrawal when you can prove fellow inmates threatened you, gang members pressured you, or the judge improperly pushed you to accept the deal. Affidavits from family members or medical professionals often prove decisive in demonstrating duress. Additionally, if you entered a plea while under the influence of drugs or alcohol, or while suffering from an untreated mental illness that impaired your judgment, the plea may be deemed involuntary.
Ineffective assistance of counsel stands as one of the most common grounds for filing a motion to withdraw a plea. Your attorney's performance must have fallen below an objective standard of reasonableness under the Strickland standard. Examples include failure to investigate viable defenses, neglect in negotiating a more favorable disposition, or providing incorrect sentencing advice. The defect must be material and prejudicial. You must demonstrate a reasonable probability that, but for counsel's error, you would not have pleaded guilty and would have insisted on going to trial. Courts hesitate to second-guess tactical decisions, yet when your lawyer failed to provide a reasonable level of guidance and led you into a bad deal, relief is appropriate.
Language barriers can render a plea involuntary when you lack an interpreter or receive mistranslated advisements. You will typically prevail on a motion by showing that, at the time of entering your plea, the interpreter was not exclusively interpreting for you. Inadequate translation services prevent meaningful understanding of the proceedings and consequences.
Successfully withdrawing a plea requires careful preparation and strict adherence to procedural requirements. The process involves multiple stages that demand attention to detail and strategic planning.
Hire an experienced criminal defense attorney who can review all the underlying facts of your case and help you decide if filing a motion to withdraw your plea serves your best interest. The attorney performs an early case audit, orders the plea transcript, performs an advisal analysis, and calendars jurisdictional deadlines immediately after intake to avoid waiver. Only a skilled attorney can determine if you fall into one of the categories that will allow you to attempt withdrawal.
Obtaining the reporter's transcript of the plea colloquy and the court file is mandatory. These documents reveal whether the trial judge complied with statutory advisements and whether any red flags indicate your decision was not voluntary. Your attorney will collect client declarations that must be detailed, consistent, and supported by corroboration. Former counsel declarations often prove necessary for ineffective assistance claims; if counsel is uncooperative, a subpoena may be required. Expert witnesses such as immigration lawyers, psychologists, or interpreters bolster the technical aspects of the motion.
Your lawyer must prepare a motion of withdrawal of plea and file it with the court. The written motion explains the factual background, the legal grounds for withdrawal, and supporting declarations or evidence. The motion should present legal arguments demonstrating why you should be allowed to withdraw the plea agreement.
A motion of withdrawal of plea may be made at any time prior to sentencing or within six months of the entry of judgment. Your attorney files the formal motion with the court requesting withdrawal.
After the motion is filed, the court schedules a hearing where you and your legal counsel present arguments. The prosecution will have an opportunity to respond. If the argument involves ineffective assistance of counsel, your prior attorney may appear to testify. Testimony from you or an expert of some type may prove necessary to demonstrate why the plea should be withdrawn.
At the hearing, your attorney presents the case in a manner to convince the judge you have good cause to withdraw your plea. Defense counsel must persuade the judge that good cause exists while the prosecution may oppose the motion.
The court's decision on your motion to withdraw a plea determines the next phase of your criminal case. Understanding both potential outcomes allows you to prepare appropriately.
Granting a withdrawal nullifies the plea as if it never happened. The case reverts to the arraignment stage. You essentially begin your criminal case anew at an arraignment. The withdrawn plea does not erase the charges; it simply restores your trial rights.
The prosecution retains discretion over how to proceed. They can move forward to trial on the original charges, offer a new plea bargain for lesser offenses or diversion, or elect to dismiss if witnesses or evidence have faded. Prosecutors at this point are not amenable to offering a better deal, and in some cases may add additional charges to the criminal complaint subjecting you to harsher sentences if convicted.
When a judge denies a motion, you remain bound by the terms of your plea and will enter the sentencing phase of the criminal court process. The original plea agreement stands, and the judge proceeds to sentencing based on the terms you initially accepted.
You retain options to challenge a sentence by filing an appeal or getting the conviction expunged. An appeal requires showing the judge made a legal error in the ruling or abused discretionary power.
Filing a motion to withdraw a guilty plea automatically voids any plea bargain from the prosecutor. When you prevail on a motion to withdraw a plea, the prosecutor has the right to reinstate all original charges. Charges dismissed when the plea deal was on the table are reinstated. If you plead guilty to trespass in exchange for dismissal of a grand theft charge, and win the motion, the prosecutor can reinstate the grand theft charge.
When a motion to withdraw a plea fails, alternative remedies remain available depending on your case status and timing.
California Penal Code Section 1237.5 permits appeals from judgments entered on guilty or no contest pleas. You can appeal based on grounds including the invalidity of the plea or jurisdictional issues. File a Notice of Appeal within 30 days for misdemeanor cases or 60 days for felony cases from the date of judgment. Unlike most appeals, PC 1237.5 appeals do not require a certificate of probable cause. The appellate court may vacate the judgment or remand the case for further proceedings if successful.
Expungement under Penal Code Section 1203.4 allows dismissal of certain convictions after completing probation. Defendants convicted of misdemeanors or felonies sentenced to probation, county jail, or AB109 qualify. You become eligible once you pay all fines, complete probation, and have no active cases. The court vacates your conviction and enters a dismissal, allowing you to state you have never been convicted on job applications. However, the conviction remains on background checks and can be used in future prosecutions.
After sentencing, you can file a writ of habeas corpus petition under PC 1473. Courts grant relief when the criminal law was unconstitutional, you were denied effective counsel, prosecutorial misconduct occurred, or you were incompetent to stand trial.
You now have the complete roadmap to file a motion to withdraw a plea in California. The process demands strong legal grounds, compelling evidence, and strict attention to timing deadlines. Without reservation, your success depends on establishing good cause through clear and convincing proof.
Remember, simply regretting your decision won't convince the court. You need legitimate reasons like coercion, lack of proper advisement, or ineffective counsel. Hire an experienced criminal defense attorney to evaluate your case and guide you through each procedural step.
Take action quickly, as timing restrictions are unforgiving. Your chance at withdrawing your plea and protecting your future starts now.

Criminal charges
can change your life
