Continuous uniform CDF calculator
The continuous uniform CDF calculator returns the probability that a uniformly distributed random variable between lower bound a and upper bound b is less than or equal to x.
Run — free
Enter three finite numbers and receive a probability from zero to one. Points below the interval return zero, points above it return one, and points inside the interval are evaluated by their relative position. The upper bound must be strictly greater than the lower bound.
What the continuous uniform CDF measures
A continuous uniform distribution assigns equal probability density to every location in a fixed interval. Its cumulative distribution function, usually called the CDF, answers a practical question: what is the probability that a random value from that interval is less than or equal to a chosen point x? The result is always between zero and one. A result of zero means the point lies at or below the lower boundary, while a result of one means it lies at or above the upper boundary. Between those boundaries, probability grows at a constant rate because equal-length portions of the interval carry equal probability. For example, a point one quarter of the way from a to b has cumulative probability one quarter. This calculator handles all three regions directly, including exact boundary values. It evaluates a single mathematical distribution rather than estimating probability from samples, so there is no simulation error, random variation, confidence interval, or dependence on a sample size. The output is the exact piecewise CDF value subject only to ordinary floating-point representation.
How to enter bounds and interpret the result
Provide a as the lower bound, b as the upper bound, and x as the point where cumulative probability should be evaluated. All three inputs must be finite numbers, and b must be strictly greater than a. Negative bounds, decimal bounds, and an x outside the interval are valid. If x is inside the interval, the calculator subtracts a from x and divides that distance by the full interval width b minus a. If x equals a, the result is zero; if x equals b, the result is one. This boundary behavior follows the standard continuous uniform CDF and does not create point mass at either endpoint, because a single exact point has probability zero in a continuous distribution. Read the returned value as a proportion. Multiplying it by one hundred gives the corresponding percentage, but the capability deliberately returns the canonical probability on the zero-to-one scale. Reversing the bounds or making them equal does not define a valid positive-width continuous uniform distribution, so that input produces a clear validation error instead of a misleading number.
When this calculation is useful
Use the continuous uniform CDF when every value within a known bounded range is modeled as equally likely. It is useful for checking textbook probability exercises, building deterministic test fixtures, validating statistical software, and calculating threshold probabilities in simple uncertainty models. Suppose an arrival time is modeled uniformly over a twenty-minute window: the CDF at a point within that window gives the chance that arrival has occurred by then. In quality assurance, a uniformly generated test value may need to remain below a limit; this result gives the theoretical fraction expected to pass. The calculation is also a convenient building block for quantile checks and probability transformations, although this capability evaluates the forward CDF only and does not solve for x. Be careful about the modeling assumption. Real measurements are often clustered, skewed, rounded, or truncated in ways that make a uniform model inappropriate. Equal density across the entire interval must come from the problem definition or a defensible assumption. The calculator performs the stated mathematics accurately, but it cannot determine whether uniformity is a good description of the underlying process.
What you can do with it
Evaluate a threshold probability
Find the chance that a uniformly distributed measurement or time falls at or below a specified cutoff.
Check statistics coursework
Verify a piecewise continuous uniform CDF calculation, including points outside the distribution interval.
Test analytical software
Create deterministic expected probabilities for boundary, interior, and out-of-range test cases.
FAQ
What formula is used inside the interval?
For a < x < b, cumulative probability is (x - a) divided by (b - a).
What happens when x is below a?
The cumulative probability is zero because no value in the distribution lies below the lower bound.
What happens when x is above b?
The cumulative probability is one because the entire distribution lies at or below x.
Why must b be greater than a?
A continuous uniform distribution needs an interval with positive width. Equal or reversed bounds do not define that distribution.
Does the calculator simulate random values?
No. It applies the analytical CDF directly, so the result is deterministic and has no sampling error.
What does an API request cost?
Each API request costs $0.002. The browser calculator uses the same deterministic calculation.
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/stat/continuous-uniform-cdf \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"a":2,"b":10,"x":5}'const res = await fetch("https://api.kit.forhosting.com/stat/continuous-uniform-cdf", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"a": 2,
"b": 10,
"x": 5
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/stat/continuous-uniform-cdf",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"a": 2,
"b": 10,
"x": 5
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/stat/continuous-uniform-cdf", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"a":2,"b":10,"x":5}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"a":2,"b":10,"x":5}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/stat/continuous-uniform-cdf", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"a": 2,
"b": 10,
"x": 5
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "stat.continuous_uniform_cdf",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |