ForHosting KIT · Math

Bertrand paradox calculator

With both ends picked at random on the circle, a chord is longer than the side of the inscribed equilateral triangle with probability 1/3, while two other fair-looking methods give 1/2 and 1/4. Choose the method and radius to see the answer for each. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Radius
1
You get
Probability
0.3333333333
Triangle side
1.7320508076
Critical distance
0.5

Bertrand's paradox is the classic demonstration that the phrase random chord does not name a single probability until a selection method is chosen. Given a circle of positive radius, an equilateral triangle inscribed in that circle has a definite side length. The geometric measure is evaluated in closed form from the radius and the chosen method, with no sampling and no language model. A non-positive radius is rejected as invalid input because there is then no circle and no inscribed triangle to compare against.

What Bertrand's paradox asks and why three answers appear

Joseph Bertrand posed a deceptively short question in eighteen eighty-nine: a chord is drawn at random in a circle; what is the probability that the chord is longer than the side of an equilateral triangle inscribed in the same circle? The side length itself is not ambiguous.

In a circle of radius r the inscribed equilateral triangle has side r times the square root of three, because each central angle is one hundred twenty degrees and the chord formula two r sine of half the angle reduces exactly to r times root three. A chord whose midpoint sits at distance d from the center has length two times the square root of r squared minus d squared, so it exceeds that side exactly when d is smaller than r over two.

The difficulty is not the comparison; it is the meaning of at random. Bertrand exhibited three procedures that look equally fair and obtained one third, one half, and one quarter. The paradox is resolved by naming the measure, not by declaring one of the three numbers wrong.

This calculator takes that resolution seriously: you choose a method, it evaluates the corresponding measure, and it returns the probability that the random chord exceeds the inscribed triangle side.

Classroom demonstration of geometric probability

Teachers contrast the three Bertrand methods on the same circle so students see that random chord is incomplete until a measure is named, and they check the classic one-third, one-half, and one-quarter answers without drawing chords by hand.

Textbook and homework verification

Students confirm that the inscribed equilateral side is r times root three, that the long-chord event is the disk of radius r over two, and that each named method produces its published probability for any positive radius.

What happens if the circle radius is not positive?

Zero, negative, infinite, and missing radius values are rejected and not charged, because they do not define a circle.

Why do the three methods give three different answers?

Each method induces a different measure on chords. Radial is uniform along a radius and yields one half. Midpoint is uniform in the disk and yields one quarter.

Is the Bertrand paradox calculator free?

The browser tool runs free on your device.

Does the probability depend on the circle radius?

No. Once the radius is positive, each of the three measures is scale-invariant, so the probability is one third, one half, or one quarter.

How long is the side of the inscribed equilateral triangle?

It is the radius times the square root of three, so 1.732050807569 for a radius of 1. A chord beats that side exactly when its midpoint lies closer to the center than half the radius.

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.

POSThttps://api.kit.forhosting.com/stat/betrand-paradox

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.

curl -X POST https://api.kit.forhosting.com/stat/betrand-paradox \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"radius":1,"method":"endpoints"}'
{
  "radius": 1,
  "method": "endpoints"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "stat.betrand_paradox",
  "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.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

This calculator reports the probability that a random chord is strictly longer than that side under one of the three historical Bertrand methods: random endpoints on the circumference, a random point on a random radius, or a random midpoint drawn uniformly from the disk.

What Bertrand's paradox asks and why three answers appear

Different natural procedures for picking a chord induce different measures on the space of midpoints or of endpoints, and therefore different probabilities for the same geometric event.

How this calculator validates input and evaluates the three measures

The engine first computes the inscribed triangle side s equal to r times the square root of three and the critical midpoint distance d-star equal to the square root of r squared minus s over two squared, which simplifies to r over two. Under radial a radius is chosen and a point is taken uniformly along it as the midpoint of the perpendicular chord: the favorable segment has length d-star, so the probability is one half. Under midpoint the midpoint is uniform in the disk: the favorable set is the concentric disk of radius d-star, so the probability is the area ratio one quarter. Call the capability with two required fields. radius is the circle radius: a finite number that must be strictly positive. Zero, negative values, NaN, and infinities fail with invalid_input and are not charged, because a non-positive radius does not define a circle and therefore does not define an inscribed triangle. Aliases r, R, and circle_radius are accepted. method is one of three closed values: endpoints, radial, or midpoint. Aliases selection and bertrand_method are accepted. Under endpoints the second point on the circumference is treated as uniform: the chord exceeds s when the central angle lies in the open interval from two pi over three to four pi over three, so the favorable arc divided by the full circumference is one third. The response reports probability as the primary value, together with radius, method, triangle_side, critical_distance, and formula.

Practical use, scale invariance, pricing, and delivery channels

Use the browser tool when you are teaching geometric probability, checking a textbook claim about Bertrand's three methods, or showing why the instruction pick a random chord is incomplete until a measure is named. Results are fully deterministic: the same radius and method always yield the same probability, the same side, and the same critical distance. There is no language model, no external geometry service, and no random sampling of chords, so the capability is safe to pin in continuous-integration checks and reproducible lesson materials. Each successful request is one billable item at $0.002; failed validation does not consume balance. Radius may be any positive finite number: the three probabilities do not depend on the particular radius, which is a theorem of the scale invariance of each measure, but the field is still required so that triangle_side and critical_distance are dimensionally honest and so that a non-positive radius is rejected rather than silently ignored. Wire the endpoint into probability tutorials, interview oracles, or notebooks that contrast rotation-invariant, radial, and area-uniform constructions of a random chord without ever drawing a Monte Carlo histogram that never quite settles.

Deterministic oracles for quizzes and tests

Curriculum platforms and CI suites call a stable oracle that rejects a non-positive radius, accepts only endpoints, radial, or midpoint, and returns identical probability fields for identical inputs.

How do I compute the Bertrand paradox probability?

Send JSON with a positive radius and method set to endpoints, radial, or midpoint. The response includes probability that the random chord exceeds the inscribed equilateral side, plus triangle_side and critical_distance.

Read the full KIT documentation →