Skip to main content
Va. CodeTitle 8.01. Civil Remedies and ProcedureChapter 25. Extraordinary WritsArticle 3. Habeas Corpus

Va. Code Ann. § 8.01-662 (2026)

Judgment of court or judge trying it; payment of costs and expenses when petition denied

Edition and currency
laws through the 2026 session (checked Sept. 2026). The text is the edition Syfert holds; for a past event, check the version in force on that date.
Other sources
CURRENTlaws through the 2026 session (checked Sept. 2026) cited 1983–2016 8citing cases
At a glance

Courts have cited this section in 8 opinions since 1983.

After hearing the matter both upon the response and any other evidence, the court shall either discharge or remand the petitioner, grant him any other relief to which he is entitled, or admit him to bail and adjudge the cost of the proceeding, including the charge for transporting the prisoner, provided, however, that if the petition is denied, the costs and expenses of the proceeding and the attorney fees of any attorney appointed to represent the petitioner shall be assessed against the petitioner. If such cost, expenses, and fees are collected, they shall be paid to the Commonwealth.

When relief is granted upon a petition for a writ of habeas corpus, the order granting relief on the writ shall be served on the respondent and the petitioner. Service may, in the court's discretion, be accomplished by personal service or by transmitting a certified copy of the order to the parties via regular or certified mail, a third-party commercial carrier, or electronic delivery.

Code 1950, § 8-603; 1968, c. 482; 1977, c. 617; 2019, cc. 8, 48.

The 8 cases that cite Va. Code Ann. § 8.01-662 most heavily, weighted by court and treatment. RelevanceNewestTreatment
1
GREENKenneth A. Stokes, Jr. v. Commonwealth of Virginia, 736 S.E.2d 330 (Va. Ct. App. 2013).
cites § 8.01-662 11×cited by 53 cases
Where it cites § 8.01-662
“The Supreme Court rejected an interpretation of Code § 8.01-662 requiring that the petitioner still be under detention in order to seek relief from an allegedly unlawful conviction.”
The case’s holding
A trial court loses jurisdiction to modify a felony sentence under Code § 19.2-303 once the defendant is transferred to the Department of Corrections.
Later courts cite it for
“expiration of the twenty-one day time limitation divests the trial court of jurisdiction.” · 12 citing courts
2
GREENHill v. Commonwealth, 379 S.E.2d 134 (Va. Ct. App. 1989).
cites § 8.01-662 4×cited by 31 cases
Where it cites § 8.01-662
“01-660) or a plenary hearing when necessary (Code § 8.01-662), the parties can produce a complete record, one that will permit an intelligent disposition of the habeas petition both in the trial court and on appeal.”
The case’s holding
The nature of an illegal substance may be proven by circumstantial evidence, including testimony from users who have demonstrated familiarity through previous use.
Later courts cite it for
“after previous use has been demonstrated” · 2 citing courts
3
GREENYeatts v. Murray, 455 S.E.2d 18 (Va. 1995).
cites § 8.01-662 2×cited by 77 cases
Where it cites § 8.01-662
“01-660) or a plenary hearing when necessary (Code § 8.01-662), the parties can produce a complete record, one that will permit an intelligent disposition of the habeas petition both in the trial court and on appeal.”
The case’s holding
An assignment of error must identify the specific error committed by the trial court because the scope of appellate review is limited by the errors assigned.
Later courts cite it for
“this assignment of error only challenges the alleged procedural failure to order an eviden-tiary hearing; it does not challenge, with reasonable certainty, the habeas court's substantive ruling on the merits of the ineffective assistance claims.” · 2 citing courts
4
GREENSmith v. Brown, 781 S.E.2d 744 (Va. 2016).
cites § 8.01-662 2×cited by 9 cases
Where it cites § 8.01-662
“These findings and conclusions should address not only the grounds asserted in support of the writ but also the scope of the writ in the event the court awards relief under Code § 8.01-662. 7 III. In sum, we reverse the circuit court's summary dismissal of Smith's habeas corpus…”
Later courts cite it for
“does not imply, much less require, that a habeas court should simply accept at face value a petitioner's after-the-fact allegation on this issue.” · 2 citing courts
5
GREENWalker v. Mitchell, 299 S.E.2d 698 (Va. 1983).
cites § 8.01-662 2×cited by 55 cases
Where it cites § 8.01-662
“01-660) or a plenary hearing when necessary (Code § 8.01-662), the parties can produce a complete record, one that will permit an intelligent disposition of the habeas petition both in the trial court and on appeal.”
The case’s holding
Claims of ineffective assistance of counsel are restricted to habeas corpus proceedings and may be barred by laches if undue delay prejudices the Commonwealth.
Later courts cite it for
“in the interests of both the commonwealth and the accused, the ends of justice dictate the adoption of a rule restricting to habeas corpus proceedings the litigation of claims of ineffective assistance of counsel.” · 3 citing courts
6
GREENBonhom v. Angelone, 58 Va. Cir. 358 (Va. Cir. Ct. 2002).
cites § 8.01-662 2×cited by 2 cases
Where it cites § 8.01-662
“01-660) or a plenary hearing when necessary (Code § 8.01-662), the parties can produce a complete record, one that will permit an intelligent disposition of the habeas petition both in the trial court and on appeal.”
7
GREENE.C. v. Virginia Dep't of Juv. Just., 722 S.E.2d 827 (Va. 2012).
cites § 8.01-662 5×cited by 41 cases
Where it cites § 8.01-662
“Code § 8.01-662 provides that the “court before whom the petitioner is brought shall either discharge or remand him, or admit him to bail .”
The case’s holding
A habeas corpus petition is not moot if the petitioner continues to suffer a concrete and continuing injury that is a collateral consequence of the conviction.
Later courts cite it for
“when a petitioner challenging the legality of his conviction continues to suffer a concrete and continuing injury, which is a collateral consequence of the conviction, a case or controversy remains and release from the sentence imposed does not render the case moot.” · 6 citing courts
8
NEUTRALDesetti v. Lee, 87 Va. Cir. 16 (Augusta Cir. Ct. 2013).
cites § 8.01-662 3×cited by 1 case
Where it cites § 8.01-662
“” Va. Code § 8.01-662. Further, in Carroll v.”

The flag is Syfertize’s treatment of the citing case itself, not of the statute. “Where it cites” is the passage in the opinion; the holding is a summary of the whole case and may concern another point. Annotations are extracted automatically from the opinions in the Syfert caselaw corpus.

Citing cases by year
198319992016

One bar per year. Tallest: 2 cases in 2013. These are opinions in the Syfert collection, which holds more of some courts’ recent opinions than their older ones, so a rise can reflect what the collection holds and not more litigation.

By court
Va.4Va. Ct. App.2Va. Cir. Ct.1Augusta Cir. Ct.1
By subsection

Courts have not cited this section by subsection, so its cases are not split up here. The Leading cases tab lists the cases that cite it most heavily.

Enactment and amendments

Syfert holds no separate history line for this section. Where this code prints a source or history note, it appears with the text, usually at the end.

Versions

Edition shown: laws through the 2026 session (checked Sept. 2026). Syfert holds no earlier or later version of this section.