---
title: "P-Value Calculator"
method: GET
path: "/api/calc/p-value-calculator"
tags: ["Math"]
---

# P-Value Calculator

`GET /api/calc/p-value-calculator`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/p-value-calculator`
- Auth: none declared

Turn a z, t, chi-square or F statistic into a left-, right- or two-tailed p-value, with critical values and whether it is significant at 0.05 and 0.01.

## Query parameters

- `dist` 'z' | 't' | 'chi2' | 'f': Test statistic
- `tail` 'two' | 'left' | 'right': Tail
- `stat` number: z value
- `df1` number: Degrees of freedom (df)
- `df2` number: Denominator df (df₂)

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
