Contact

T.DIST.RT Function (LibreOffice Calc)

Statistical Intermediate LibreOffice Calc

Learn the T.DIST.RT function in LibreOffice Calc: Returns the right-tailed t-distribution.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in LibreOffice Calc. How formula examples are checked

Historical validation scope: Native observations refer to saved LibreOffice Calc 25.2.3.2 Linux import/recalculation evidence from 13 October 2026. All 118 XLSX/result records agree; the ODS agrees numerically and records eight error displays as Err:502 or Err:511 where XLSX exports #VALUE!. This review independently recalculated all 106 numerical outputs, including integer-df interpretations of diagnostics. Calc was not rerun.

T.DIST.RT returns the area under the right-hand tail of a Student’s t distribution beyond a specified t statistic: P(T > t) for a chosen positive number of degrees of freedom. It is useful for one-sided hypothesis tests, upper-tail risk calculations, and very small probabilities that are difficult to compute accurately by subtracting a cumulative distribution value from one.

Quick answer

=T.DIST.RT(1;10)

Native Calc result: 0.17044656615103 (approximately 17.0446566%). The complementary CDF is =T.DIST(1;10;TRUE()) → 0.82955343384897; their probabilities add to one. LibreOffice’s official example rounds the right tail to 0.1704465662. LibreOffice Help: Statistical Functions Part Five.

Syntax and arguments

=T.DIST.RT(Number;DegreesFreedom)

Exactly two arguments are required; there is no third Cumulative or Tails argument, and no omitted-argument default. The English Calc/OpenFormula examples use the semicolon separator; localized Calc settings may differ.

Argument Required Meaning Good input practice
Number Yes The observed t statistic; can be negative, zero, or positive. Use a numeric cell/formula, not number-looking imported text.
DegreesFreedom Yes The t distribution’s degrees of freedom, normally a value derived from the statistical model. For verified portability, supply a positive integer. Fractional values are truncated in the native Calc version tested.

The source definitions and notation come from LibreOffice’s T.DIST.RT entry. The OpenFormula/Calc formula separator is described in OASIS OpenDocument 1.4 §5.6.

What is meant by a right tail?

For Student’s t random variable T with ν degrees of freedom, T.DIST.RT(t;ν) returns P(T>t) = 1−F(t) mathematically, where F is the cumulative distribution function. Because the t distribution is continuous, choosing > versus ≥ does not change the probability. The t curve is symmetric about zero:

  • at t = 0, the right-tail probability is 0.5;
  • at a positive t, the right-tail probability is less than 0.5;
  • at a negative t, the right-tail probability is greater than 0.5;
  • at t = 1, df 10, right tail ≈ 0.1704465662;
  • at t = −1, df 10, right tail ≈ 0.8295534338.

These direct t/df outputs were confirmed in the native Calc test workbook, not merely inferred from a different application’s distribution function.

Example 1 — build a simple right-tail calculator

Place the observed statistic and degrees of freedom into cells:

Cell Enter Meaning
A2 1 observed t
B2 10 degrees of freedom
C2 =T.DIST.RT(A2;B2) right-tailed probability, expected 0.17044656615103
D2 =T.DIST(A2;B2;TRUE()) complementary CDF, expected 0.82955343384897
E2 =C2+D2 consistency check, expected 1

The corresponding direct-input formulas for C2 and D2 were both executed and passed native numerical assertions. The proposed cell-reference layout is reproducible, but it was not separately executed as a full sheet in the saved native test matrix. Format C2 as a percent to display about 17.04%; percentage formatting does not change the stored numeric probability.

Example 2 — one-sided right-tail t hypothesis test

Assume a random sample of n=25 independent measurements with sample mean 16 and sample standard deviation 2, compared to hypothesized population mean 15. Under the relevant t-test model and its assumptions, the test statistic is (16−15) / (2/√25) = 2.5, with ν = 24 degrees of freedom.

Cell Enter Expected result
B2 16 sample mean
B3 15 hypothesized mean
B4 2 sample standard deviation
B5 25 sample count
B6 =(B2-B3)/(B4/SQRT(B5)) t = 2.5
B7 =B5-1 df = 24
B8 =T.DIST.RT(B6;B7) right-tail p-value ≈ 0.00982708755828939

At conventional 0.05 as an illustration, the p-value is below that threshold; whether the result is meaningful depends on assumptions, study design, and the pre-specified hypothesis. B8’s stated numerical expectation is an independent SciPy calculation for (2.5,24); native Calc testing covered 32 other right-tail formulas, but this assembled sample sheet was not natively executed. A right-tail test is appropriate for a directional alternative of greater than, not an automatically chosen smaller p-value after seeing the data.

Left-sided and two-sided alternatives

For t in A2 and degrees of freedom in B2:

Intended probability Formula Important distinction
Upper/right =T.DIST.RT(A2;B2) P(T>A2)
Lower/left =T.DIST(A2;B2;TRUE()) P(T≤A2)
Two-sided symmetric =2*T.DIST.RT(ABS(A2);B2) Probability in both tails at least as extreme in magnitude
Right tail via complement =1-T.DIST(A2;B2;TRUE()) Mathematically equal, but can lose precision at extreme t values

If A2=-1 and B2=10, T.DIST.RT(A2;B2) is about 0.8295534338, while the left tail is about 0.1704465662. Taking ABS() unconditionally before a directional right-tailed test would produce the wrong question. ABS belongs in the symmetric two-tail formula when the test statistic’s sign should not select the direction.

Example 3 — high t scores and numerical precision

For a very extreme positive t statistic, the upper tail may be tiny. The direct right-tail formula retains precision without subtracting from a rounded-to-one CDF:

=T.DIST.RT(100;30)

Native Calc result: 9.92305898363502E-40, compared with independent SciPy expected 9.923058983635155E-40. Both appear in the archived diagnostic evidence. In contrast, 1-T.DIST(100;30;TRUE()) is mathematically the same probability but may evaluate to zero due to floating-point cancellation when the CDF rounds to one. The latter calculation was not separately native-executed as a formula in the saved tests, so it is presented as a numerical-analysis warning rather than an observed result for that exact expression.

This distinction also matters when calculating one-sided hypothesis-test p-values and upper-tail thresholds. The following additional native Calc results were recorded:

Native-executed formula Native result Interpretation
=T.DIST.RT(0;10) 0.5 distribution midpoint
=T.DIST.RT(1;10) 0.17044656615103 t right tail
=T.DIST.RT(-1;10) 0.82955343384897 negative t has a large right tail
=T.DIST.RT(1;1) 0.25 Cauchy (ν=1)
=T.DIST.RT(1.75;7) 0.061796514261144 moderately small right tail
=T.DIST.RT(2.5;30) 0.00905782453403334 small right tail
=T.DIST.RT(100;30) 9.92305898363502E-40 extreme right tail

These are native execution observations from LibreOffice Calc 25.2.3.2 on Linux, not Excel results.

Example 4 — create a t-tail sensitivity table

To see how df changes a right-tail probability, place a fixed t statistic, such as 2, in B1. Type positive integers 3, 5, 10, 20, 30, 100 down A2:A7. In B2 enter:

=T.DIST.RT($B$1;A2)

Fill B2 through B7. Graph the degrees-of-freedom column against the tail-probability column with a scatter plot; do not use a line connecting the points to imply degrees can be interpreted as any real input in this Calc version. The layout is a reproducible proposal, while the native verification spreadsheet separately tested numerous individual df/t combinations. If the statistic itself should depend on the sample size, recompute that statistic for each row; keeping it fixed answers a distribution-sensitivity question only.

Advanced: use t statistics carefully in p-value workflows

A statistically meaningful p-value begins with an appropriate model and test statistic, not a built-in function alone. The one-sample t statistic is t=(sample_mean−null_mean)/(sample_s/sqrt(n)), with df=n-1 for the standard one-sample t-test under its assumptions. Paired tests instead use the differences; Welch’s two-sample test can have noninteger effective degrees of freedom, and this is precisely where a version-specific rounding issue becomes important.

Caution for Welch tests: the mathematical Welch–Satterthwaite df may be fractional. In Calc 25.2.3.2, native T.DIST.RT inputs with fractional df returned results matching the integer truncation rather than independent continuous-df SciPy. Do not report the returned p-value as though it used exact fractional df. Document any deliberate df approximation and independently check the implications, or use a verified statistical tool that supports real-valued df accurately. This is a material warning for scientific reproducibility, not just cosmetic rounding.

The inverse critical-value counterpart is T.INV.2T for a two-sided critical value, or T.INV for lower-cumulative inversion.

Errors, argument boundaries, and fixes

Issue Explanation and practical fix
Missing second argument The function requires df. =T.DIST.RT(1) displays Err:511 in the saved ODS and #VALUE! in the XLSX export.
Degrees of freedom zero or negative Native diagnostic =T.DIST.RT(1;0) and =T.DIST.RT(1;-3) yielded #VALUE! in the OOXML cached export. Require positive df. The saved ODS displays Err:502 for these two cases.
Noninteger degrees of freedom This tested release truncated decimal df to integer; do not assume the continuous-df distribution is evaluated. Use integer df for validated examples or a separately verified method.
Unexpectedly high p-value Check whether the statistic is negative. Right-tail probability above 0.5 is normal for negative t.
Nonnumeric imported argument Text such as "oops" caused an error in the native test. Check source-cell formats and numeric conversion. Numeric-looking text was coerced in some tests: don’t depend on that.
#NAME? after import Confirm the application supports the function and has mapped vendor-specific stored names; do not paste _xlfn. file-interchange prefixes into Calc formulas.
Locale parsing errors English examples use ;; confirm installed formula separator and decimal symbol configuration.
Tiny p-value appears as 0 Cell number formatting may hide significant digits; switch to scientific notation. For extreme positive t, prefer T.DIST.RT directly to subtracting CDF from 1.

Native fractional-degrees limitation

Formula Observed Calc 25.2.3.2 Independent real-df Student t result
=T.DIST.RT(1;2.5) 0.211324865405187 0.202030513639137
=T.DIST.RT(-1.75;5.5) 0.929738820505729 0.932412302196711

The observed Calc outputs match the distribution evaluated with df=2 and df=5, respectively. That is not a validated assumption for all Calc versions or a claim of conformity with the continuous real-df mathematical model. It is a directly recorded behavioral difference in the native test workbook. The current T.DIST.RT Help entry does not explicitly describe fractional-df truncation, whereas the legacy TDIST entry includes a note for integer arguments. See LibreOffice Help, T.DIST.RT and TDIST.

A worksheet that requires positive integer degrees of freedom can reject ambiguous inputs before running the function:

=IF(NOT(ISNUMBER(A2));NA();IF(NOT(ISNUMBER(B2));NA();IF(AND(B2>0;B2=INT(B2));T.DIST.RT(A2;B2);NA())))

This guard formula is a proposed reproducible workflow, not an individually native-executed test case. For scientific work that naturally requires fractional degrees of freedom, rejecting such df is only a safety check—not a substitute for correct real-df statistical evaluation.

Compatibility and version scope

The official LibreOffice Help says T.DIST.RT has been available since LibreOffice 4.3 and was not part of the OpenFormula 1.3 standardized functions. Its designated namespace is COM.MICROSOFT.T.DIST.RT. The OpenDocument 1.4 specification (§5.7) describes vendor-prefixed names for functions not defined by that standard, so file interchange can retain a vendor function without guaranteeing another program computes it the same way. Official LibreOffice Help; OASIS OpenDocument 1.4, §§5.6–5.7.

What was actually tested: LibreOffice Calc 25.2.3.2 on Linux, recomputing an OOXML test workbook (import formulas encoded _xlfn.T.DIST.RT) into native ODS and exporting recalculated XLSX. _xlfn. is an imported OOXML metadata prefix and not user-editable Calc formula syntax. No Excel installation was run; Excel parity, behavior on macOS/Windows, other LibreOffice builds, locale-specific decimal parsing, and third-party editors remain unverified. Keep any interoperability claim limited to the observed import/recalculation path.

Function Meaning Sign / argument caveat
T.DIST.RT(t;df) Right-tail survival P(T>t) Retains sign; negative t gives probability >0.5.
T.DIST(t;df;TRUE()) Left-cumulative P(T≤t) Complement of right tail; not a right tail itself.
T.DIST(t;df;FALSE()) Density height at t Not a p-value or tail probability.
T.DIST.2T(abs(t);df) Two-sided tail probability Do not feed an unvalidated negative t directly; use absolute magnitude where two-sided hypothesis intended.
TDIST(t;df;mode) Older mode-based function Different signature and older behavior; not an interchangeable alias.
T.TEST(array1;array2;tails;type) Test from sample data Requires sample design and test-type settings.

FAQs

Does the function need a TRUE/FALSE cumulative argument? No. T.DIST.RT has two arguments and always returns the right-tail probability. A third argument belongs to T.DIST, not this function.

Can a negative t statistic be entered? Yes. It gives a large right-tail probability. Do not automatically use ABS unless you’re computing a two-sided test by design.

Why use T.DIST.RT instead of 1−T.DIST? They are mathematically equal, but the directly calculated survival function can retain very small upper-tail probabilities without cancellation.

Can I use noninteger degrees of freedom? The mathematical Student t distribution permits them, but this tested LibreOffice version truncated them, so the resulting number may differ materially. See the verified discrepancy table and do not claim that the exact fractional df was used.

Does a p-value tell me the probability that the null hypothesis is true? No. The value is a tail probability of the statistic under the specified null model and assumptions, not a posterior probability that a hypothesis is true.

Official documentation

See LibreOffice statistical function documentation for syntax, examples, version availability and compatibility details.