haftrecht.at
Pre-trial detention

Crediting pre-trial detention against the sentence under section 38 StGB, Austria

Crediting pre-trial detention against custodial sentences and fines under section 38 StGB: requirements, calculation for fines and the link to StEG 2005 compensation.

Your personal attorney

Mag. Christopher Angerer, Rechtsanwalt

Your lawyer for detention and deprivation of liberty

When someone is in custody, every hour counts. One lawyer who accompanies you personally, from the detention review hearing to release.

17 June 2026 · Mag. Christopher Angerer, Rechtsanwalt

Anyone who has served pre-trial detention wants to know whether and how that time will be credited against a later sentence. Section 38 StGB answers exactly that: administrative and judicial custody as well as pre-trial detention are credited against custodial and financial penalties, to the extent that the detention was suffered after the commission of the offence for which the person is sentenced, or otherwise on suspicion of a punishable act.

The crediting has considerable practical significance. Time served in pre-trial detention shortens the sentence still to be enforced. Where the credit is full, the sentence may be regarded as already served. For fines the substitute custodial sentence determines the extent of the credit. And what has once been credited or compensated may not be used a second time.

What aspect of crediting concerns you?

Custodial sentence, fine, double crediting or compensation: what do you need?

The crediting of pre-trial detention under section 38 StGB works differently depending on the type of sentence and the number of proceedings. Choose your situation and you will receive an assessment with concrete first steps and the matching in-depth reading.

Already know you want to send an enquiry? Go straight to the contact form.

01 Question 1

What aspect of crediting pre-trial detention concerns you?

Pre-trial detention can be credited against different types of sentence. Whether a custodial sentence or a fine was imposed, and whether several proceedings are involved, raises different questions. Choose what concerns you right now.

All paths at a glance

Overview of all answers.

01

Time served in pre-trial detention is credited against the custodial sentence under section 38 StGB and shortens the remaining sentence to be enforced.

Under section 38 StGB pre-trial detention must be credited against a custodial sentence, provided it was suffered after the commission of the offence for which the person is sentenced, or otherwise on suspicion of a punishable act. The crediting is not discretionary: the court must carry it out in the judgment. In practice this means the sentence still to be enforced is shorter by the duration of the pre-trial detention. Where crediting is full, the sentence may be regarded as already served.

What to do now: First, check the judgment to confirm that the entire period of pre-trial detention is correctly recorded in the operative part. Second, if there are discrepancies engage the defence immediately, because errors in crediting can only be corrected on appeal. Third, ensure that the same period of detention is not credited in two separate proceedings.

In depth: pre-trial detention at a glance →
02

For fines, the substitute custodial sentence fixed in the judgment under section 19 para 3 StGB determines the extent of the credit.

Where a fine has been imposed, the days of pre-trial detention cannot be deducted directly. The law uses the substitute custodial sentence as the conversion measure. Under section 19 para 3 StGB the court must fix in the judgment how many days of substitute custodial sentence correspond to an unpaid fine. The time served in pre-trial detention is credited against this substitute sentence. If the pre-trial detention is longer than the substitute custodial sentence, the fine is regarded as fully discharged. This is particularly relevant where a comparatively short fine was imposed but a longer period of pre-trial detention was suffered.

What to do now: First, read the judgment carefully and check which substitute custodial sentence the court has fixed. Second, compare the duration of pre-trial detention with the substitute sentence to calculate the remaining liability. Third, involve the defence if there are uncertainties or errors in the crediting.

In depth: access to the file in pre-trial detention →
03

Under section 38 StGB the same period of detention may be credited only once and is treated as exhausted once it has been taken into account in one set of proceedings.

Section 38 StGB expressly excludes double crediting: crediting only takes place to the extent that the detention has not already been credited against another sentence. If the same period of detention has already been taken into account in earlier or concurrent proceedings, it cannot be deducted again in further proceedings. This is particularly relevant where someone is held in pre-trial detention while several criminal proceedings against them run concurrently, or where they are sentenced for several offences.

What to do now: First, establish in which proceedings pre-trial detention was suffered and whether it has already been credited there. Second, ensure that all courts involved in the proceedings are informed of the current state of crediting. Third, coordinate the defence across all proceedings so that no period of detention is lost and no impermissible double credit occurs.

In depth: grounds for pre-trial detention →
04

Crediting and compensation under the StEG 2005 are mutually exclusive: anyone compensated for a period of detention cannot also have it credited against a sentence.

Section 38 StGB prohibits crediting to the extent that the person has already been compensated for the detention. Conversely, crediting a period of detention against a sentence bars a compensation claim under the StEG 2005 for the same period. Anyone who claims compensation under section 2 StEG following an acquittal or discontinuation of proceedings cannot simultaneously have the same period credited against another sentence. This interaction must be considered carefully in complex cases involving several proceedings.

What to do now: First, examine whether a compensation claim under the StEG 2005 exists, since acquittal or discontinuation is a requirement. Second, clarify which periods of detention should be credited and which should be compensated, because both cannot apply to the same period. Third, seek legal advice early to choose the more advantageous option and to avoid missing any deadline.

In depth: compensation for unlawful detention under the StEG 2005 →

Requirements for crediting under section 38 StGB

Crediting requires that the detention was suffered after the commission of the offence for which the person is sentenced, or that the person was held on suspicion of a punishable act for some other reason. Both the classic form of pre-trial detention and administrative custody are covered. What matters is the temporal and substantive connection between the detention and the offence for which judgment was given.

The court carries out the credit in the judgment. It is not a matter of discretion but an obligation: if someone has served pre-trial detention and is convicted for the same offence, the court must credit the period of detention against the sentence. The time served shortens the sentence still to be enforced accordingly. Where a sentence is fully absorbed by time already served, no further enforcement takes place.

No credit is given for detention that has already been credited against another sentence or for which the person has been compensated. This principle prevents a double benefit: the same period of detention can be set off only once, whether in the form of a credit or of compensation under the StEG 2005.

Crediting against fines: the role of the substitute custodial sentence

Where a fine has been imposed, the days of pre-trial detention cannot simply be deducted directly. The law uses the substitute custodial sentence as the conversion measure. Under section 19 para 3 StGB the court must fix in the judgment which substitute custodial sentence takes effect if the fine is not paid. The time served in pre-trial detention is credited against this substitute sentence.

If the pre-trial detention is shorter than the substitute custodial sentence, it reduces the outstanding fine proportionally. If it equals or exceeds the substitute sentence, the fine is regarded as fully discharged. This matters above all where someone received a comparatively short fine but served a longer period of pre-trial detention.

In practice it is important to read the judgment carefully: the substitute custodial sentence must be correctly stated in the judgment so that the credit can be calculated without error. Errors in fixing the substitute sentence can distort the credit and should be raised with the defence immediately.

Types of credit compared

Crediting against a custodial sentence and against a fine side by side

Depending on which sentence was imposed, the crediting of pre-trial detention works differently. The overview places the key points side by side.

Crediting of pre-trial detention under section 38 StGB against a custodial sentence and against a fine
Feature Custodial sentence Fine
Measure of credit What is compared Direct deduction of days in detention from the sentence Credit via substitute custodial sentence under section 19 para 3 StGB
Effect Practical consequence Sentence to be enforced is shortened by the period of pre-trial detention Outstanding fine is reduced proportionally or extinguished entirely
Full credit Where absorption is complete Sentence deemed served, no further enforcement required Fine deemed discharged, no amount remains outstanding
Double crediting Exclusion The same period of detention creditable only once against one sentence The same period of detention creditable only once against one sentence
Compensation bar Relation to StEG 2005 Crediting bars compensation for the same period Crediting bars compensation for the same period

Crediting is not discretionary; the court must carry it out in the judgment. Where there are uncertainties or errors, the defence should be engaged without delay.

Crediting and compensation: no double benefit

Section 38 StGB and the Criminal Compensation Act 2005 (StEG 2005) are mutually exclusive for the same period of detention. Anyone who has been compensated for a period of detention under the StEG 2005 can no longer have that period credited against a sentence. Anyone who has it credited against a sentence loses the compensation claim for the same period. The law thus prevents a double benefit from the same period of detention.

This interaction becomes practically relevant above all where someone, following an acquittal or discontinuation of proceedings, examines a compensation claim under section 2 StEG but still has another criminal proceeding open in which the same period of detention could be credited. Careful consideration is needed here: which option is more advantageous?

The answer depends on the circumstances. The StEG 2005 grants a daily rate of between 20 and 50 euros as well as compensation for loss of earnings and necessary defence costs. Crediting against a sentence, by contrast, can significantly shorten enforcement or cause it to lapse entirely. Early advice protects against losing the more favourable option.

Frequently asked questions

What people often ask about crediting pre-trial detention.

What does crediting pre-trial detention under section 38 StGB mean? +

Under section 38 StGB pre-trial detention is credited against custodial and financial penalties, to the extent that it was suffered after the commission of the offence for which judgment is given or otherwise on suspicion of a punishable act. The time served shortens the sentence to be enforced accordingly. The court must carry out the credit in the judgment.

How is pre-trial detention credited against a fine? +

For fines the credit is made via the substitute custodial sentence. Under section 19 para 3 StGB the court must fix in the judgment how many days of substitute custodial sentence correspond to an unpaid fine. The time served in pre-trial detention is credited against this substitute sentence. If the period of detention exceeds the substitute sentence, the fine is regarded as fully discharged.

Can the same period of detention be credited in several proceedings? +

No. Section 38 StGB excludes double crediting. The same period of detention may be credited only once against a sentence. Once it has been taken into account in one set of proceedings it cannot be deducted again in another set of proceedings for the same period. Where several concurrent proceedings are involved the defence must keep track.

What happens if the sentence is shorter than the pre-trial detention served? +

In that case the sentence is regarded as already fully served through the prior detention. No further enforcement takes place. This situation arises above all with short sentences where the pre-trial detention was longer than the custodial sentence imposed or the substitute custodial sentence for a fine.

Do crediting and compensation under the StEG 2005 exclude each other? +

Yes, for the same period of detention. Anyone who has a period of detention credited against a sentence cannot claim compensation under the StEG 2005 for that same period. Anyone who is compensated can no longer have the same period credited. Both instruments therefore cannot apply to the same period of detention at the same time.

Topics
untersuchungshaftparagraph-38-stgbanrechnung-vorhaftersatzfreiheitsstrafeparagraph-19-stgbsteg-2005

Arrest? Detention? Warrant?

When liberty is at stake, every hour counts. Call us directly or send an email, callback within one business day. In urgent cases, we are also available outside office hours.

Contact

A direct line to the firm.

Address

BRANDAUER Rechtsanwälte GmbH Giselakai 51 5020 Salzburg