Bezier Curve Calculator
A Bezier curve calculator turns control point coordinates and a parameter into a point, derivatives, and an arc length estimate. Enter the points in the numerical workspace above, set t, and check the result against the graph. The default quadratic gives a calculation you can reproduce by hand.
Enter points in traversal order
Choose the degree first. Degree two needs three rows and degree three needs four. P0 is the start and the last row is the end. Write coordinates in a consistent unit. If one row uses pixels and another uses meters, convert both to the unit you want before entering the numbers.
Use the range slider to move quickly, or type a parameter between zero and one for a reproducible value. The field applies on Enter or blur. Invalid entries remain visible for correction while the graph and results retain the previous valid value. A degree change can alter the curve, so check the point table after changing the degree.
Open Advanced settings to choose decimal places, sample intervals, and the length tolerance. Decimal places change displayed values. The calculation uses floating-point coordinates before display rounding, and CSV preserves up to fifteen significant digits. Increasing the sample count adds rows for inspection and export while the integrator chooses its own evaluation points.
Check a quadratic by hand
Use P0 = (0, 0), P1 = (1, 2), and P2 = (2, 0). At t = 0.5, the three Bernstein weights are one quarter, one half, and one quarter. Multiplying each control by its weight and adding the vectors gives B(0.5) = (1, 1). The equations below the graph reduce to x(t) = 2t and y(t) = 4t − 4t².
The first derivative is (2, 4 − 8t), so at the midpoint it is (2, 0). The speed is 2, and dividing the derivative by the speed gives a unit tangent of (1, 0). The second derivative is (0, −8) everywhere on this curve. It describes the changing velocity and is constant because the original curve is quadratic.
A second check is a two-point line from (0, 0) to (3, 4). The speed is constantly 5 and the total length is 5. Compare that with the quadratic, where the endpoints are two units apart and the curve is longer. The distance between the endpoints provides a lower bound on a path that bends or doubles back.
Read the point, derivatives and curvature
B(t) gives position. To compute B′(t) for degree n, the calculator forms new controls by subtracting each point from its successor and multiplying by n. It evaluates that degree n minus one curve at t. Applying the same rule again produces B″(t). The components are changes per unit of the dimensionless parameter and changes per parameter squared, respectively.
Speed is the length of the derivative vector. For a direction without its magnitude, read the unit tangent field. At a stationary point the derivative alone gives no unit tangent, even if the curve has a visible direction on either side. The calculator marks unit tangent and curvature as undefined when speed is zero or numerically indistinguishable from zero on the scale of the controls.
Curvature describes how sharply the path turns and has inverse coordinate units. A straight regular segment has curvature zero. If your x and y values use different physical scales, rescale them into matching units first. Arithmetic on the numbers alone cannot determine the physical scale of an axis.
Choose a useful tolerance
Start with the default tolerance and compare the reported precision with the unit scale of your inputs. For a large drawing the relative tolerance can dominate. On a very short curve the absolute tolerance can dominate. To compare two estimates, keep the control points and their units fixed while changing one setting at a time.
Read the arc length estimate and sample table
The calculator integrates speed from t = 0 to t = 1 using adaptive Simpson integration. Where the speed changes quickly, it subdivides the interval and compares estimates at two resolutions. The entered tolerance is used for both the absolute tolerance in curve units and the dimensionless relative tolerance. The calculation uses the larger of the absolute allowance and a preliminary length scaled by the relative tolerance.
The reported error is an estimate from the subdivision process and has no guaranteed bound. If the work limit is reached, check the result against a separate calculation or split the curve and compare the sum of the parts. A path that folds along a straight line can still have significant length. Its velocity can reverse, which is why the integrand uses the magnitude.
Use the sample table to check several parameters at once. With four intervals you get five rows, at 0, 0.25, 0.5, 0.75, and 1. Copy the table or save it as CSV. The spacing is even in t. For uniformly spaced physical positions you would need a separate length-to-parameter inversion.
Frequently asked questions
Why is the midpoint parameter uneven along my curve?
The parameter controls the weights of the points. When speed changes, half the parameter interval need not cover half the distance. Compare sampled positions near both endpoints to see the difference.
What if all control points coincide?
The point stays at their common position for every t. Both derivatives have zero components and length is zero. Unit tangent and curvature are undefined.
Why do my expanded coefficients look large?
The power basis uses repeated differences and binomial multipliers. Terms can be large and partly cancel. The calculator evaluates directly from the controls using repeated interpolation. Rounding copied polynomial coefficients can change a manual result.
Further reading · A Primer on Bézier Curves