How Texas jail-time credit works
Jail-time credit (often called “back-time” or pre-sentence credit) is the number of days you were held in custody before sentencing that get subtracted from the front of your sentence. If you sat in the county jail for 145 days waiting for your case to resolve and then received a two-year sentence, those 145 days come off the two years. The credit is not a favor the judge grants — it is a statutory command that applies in every criminal case.
The calculator above turns the arithmetic into something you can check. Enter the date each period of confinement began, the date it ended (or leave it blank if you were still in custody at sentencing), and the sentencing date. Add a separate row for every stint in jail. Any time you posted bond and were released, leave that gap out — the tool never counts it, because the statute credits only time actually spent in jail.
How the days are counted
Credit is measured in calendar days, not hours. The customary method — and the one this calculator uses — counts both the first day of confinement and the last day (the day of release or the day of sentencing) as days served, because you were in custody on each of them. A person arrested and sentenced on the same day still receives one day of credit. For a single stretch from arrest straight through to sentencing, the count is simply the number of days from booking through the sentencing date, inclusive.
The official figure is calculated by the county jail and entered by the district clerk on the judgment, and it can differ from an estimate by a day or two depending on exact booking and release times. Treat the number here as a close approximation to check against your paperwork, not as the final tally. Where the two disagree, your booking records and the signed judgment control.
What counts, and what does not
The rule turns on a single phrase in the statute: credit is owed for time spent “in jail for the case ... from the time of his arrest and confinement until his sentence by the trial court,” but not for “confinement served as a condition of community supervision.” The table below sorts the common situations.
| Time in custody | Counts toward the sentence? | Authority |
|---|---|---|
| County jail for this case, from arrest to sentencing | Yes — mandatory | art. 42.03 § 2(a); Ex parte Walker |
| Time released on bond or bail | No | art. 42.03 § 2(a) (“in jail for the case”) |
| Jail served as a condition of community supervision | Discretionary — judge may grant or deny | art. 42.03 § 2(a); Ex parte Walker |
| State jail felony sentenced directly to a state jail facility | Discretionary | In re Craven (former art. 42.12 § 15(h)) |
| Held only on a separate, unrelated cause | No (unless also held on this case) | art. 42.03 § 2(a) (“for the case”) |
| Confinement in a treatment facility as a condition of supervision | Discretionary | art. 42.03 § 2(a); Ex parte Walker |
Two lines in that table matter most in everyday cases. First, bond time never counts — the moment you are released on bail, the clock stops, and it restarts only if you are booked back in. Second, time you served in jail as a condition of probation is treated differently: the judge has discretion whether to credit it, so the calculator lists that time separately rather than folding it into the mandatory total.
Continuous custody vs. multiple stints
Many cases are not one clean stretch of jail. A person is arrested, bonds out a week later, misses a setting, is picked up on a warrant, bonds out again, and is finally taken into custody at the plea. Each of those in-custody stretches earns credit; each stretch on bond does not. That is why the calculator lets you add a row for every separate period of confinement — it sums the days you were actually held and ignores the days in between.
Watch for two things when you have multiple stints. Overlapping dates on the same cause should be merged, because a defendant does not receive two days of credit for one calendar day on a single case; the tool flags overlaps for you. And time spent in custody on a separate matter — a different cause number — generally does not count toward this case unless you were being held for this case at the same time. If a hold or detainer meant you were confined on this cause in another county, that time can count, but you usually need jail records or the detainer to establish it.
The community-supervision exception
Article 42.03 § 2(a) carves out “confinement served as a condition of community supervision.” If a judge orders you to serve, say, 30 days in the county jail as a term of probation and probation is later revoked, whether those 30 days credit against the revocation sentence is up to the court. In Ex parte Walker, the Court of Criminal Appeals read the 1993 amendment to the statute as granting the trial judge discretion over that category of time. The same discretion can apply to time spent confined while awaiting transfer to a treatment program that is itself a condition of supervision. Because of that, the calculator shows condition-of-supervision days on their own line and does not add them to the mandatory figure.
How courts apply article 42.03 § 2(a)
Texas appellate courts have addressed jail-time credit many times, and a few decisions frame the rules this calculator relies on.
In Ex parte Walker, 150 S.W.3d 429 (Tex. Crim. App. 2004), the Court of Criminal Appeals restated the settled rule that “defendants are entitled to time credit toward their sentences for time spent in confinement from arrest to sentencing according to Texas Code of Criminal Procedure Article 42.03 § 2(a),” while confirming that time served as a condition of community supervision falls outside the mandatory credit and rests in the trial judge's discretion.
On the remedy, Ex parte Ybarra, 149 S.W.3d 147 (Tex. Crim. App. 2004), holds that “[t]he trial court is required to grant the [defendant] pre-sentence jail time credit when sentence is pronounced,” and that when the court fails to do so, “the trial court has the authority to correct the judgment to reflect the appropriate time credit by nunc pro tunc order and should do so.” If the trial court will not act on a nunc pro tunc motion, Ybarra directs the defendant to seek a writ of mandamus in the court of appeals.
And Ex parte Florence, 319 S.W.3d 695 (Tex. Crim. App. 2010), explains that although a nunc pro tunc motion is the usual first step, “[a]n application for writ of habeas corpus under Article 11.07 may be used to raise a claim for pre-sentence time credit if an applicant alleges that he is presently being illegally confined because he would have discharged his sentence if given the proper time credit.” In short, when missing credit means you are being held past your discharge date, post-conviction habeas is available. Courts have also recognized a narrow exception for state jail felonies sentenced directly to a state jail facility, where credit for pre-sentence time can be discretionary rather than mandatory. See In re Craven, No. 02-09-00243-CV (Tex. App.—Fort Worth Nov. 13, 2009).
What to do if your judgment omits credit
Because the credit is mandatory, a judgment that leaves it out contains a correctable error rather than a discretionary call. The ordinary sequence is:
- Motion for judgment nunc pro tunc. File it with the clerk of the convicting court, attaching booking and release records that prove the dates. This asks the court to correct the judgment to reflect the credit it should have awarded.
- Petition for writ of mandamus. If the trial court denies the motion or refuses to rule, ask the court of appeals to order the trial court to perform its ministerial duty.
- Article 11.07 habeas corpus. Where the miscalculation means you are being held beyond your discharge date, a post-conviction habeas application in the convicting court — which the Court of Criminal Appeals reviews — can raise the credit directly.
Booking sheets, jail records, and the clerk's file are the proof that drives all three remedies. Gather them early; the dates the calculator needs are the same dates a court will require.
- Jail-time credit (back-time)
- Days spent in custody before sentencing that are subtracted from the sentence under art. 42.03 § 2(a).
- Flat time
- Day-for-day time that reduces a sentence directly, separate from parole or good-conduct time.
- Nunc pro tunc
- A court order that corrects the record to reflect what should have been entered — the usual way to fix an omitted credit.
- Ministerial duty
- An act the law requires with no room for discretion; awarding mandatory jail credit is one.
How credit interacts with parole and good time
Pre-sentence jail credit is flat time — it comes off the calendar of the sentence directly. It is separate from parole eligibility and from good-conduct time, which the Texas Department of Criminal Justice applies while a sentence is being served. Jail credit can move a parole-eligibility date and a discharge date earlier, but the parole calculation itself follows its own rules. The estimate here shows the flat-time reduction only; use the parole eligibility calculator to model the rest, and the bond estimator if your case is still in the pretrial stage.
One practical point for people facing more than one case: jail-time credit is applied at sentencing to the specific cause you were held on, so confirm which cause each period of custody was attributed to. How credit is allocated when sentences run concurrently or consecutively can be complex, and your attorney and the signed judgment are the authorities on how it is applied to your particular sentences.