Quadratic workspace
Interactive graph of the curve and its control pointsThe horizontal axis is x. Positive y points upward. Labeled control points can be moved with the arrow keys. Drag the plot background to pan. Scroll over the plot to zoom.P0P1P2
Curve settings
Load a preset
Control points
P0P1P2
B(t)
—
Arc length
—
Advanced settings

Coordinates ±1,000,000 · Degrees 1–10 · Up to 512 sample intervals

Graph display

Numerical results

Parametric equations

Export active curve

Data uses x right and y up. SVG, PNG and Canvas use x right and y down. Degree 4–10 graphics use 256 line segments. Numbers retain up to 15 significant digits.

Quadratic Bezier Curve

A quadratic Bezier curve connects two endpoints and uses one interior control to set the bend. Drag any of the three points above or type its coordinates. Move t to inspect the point and the two interpolation steps, then copy a native SVG or Canvas curve when the shape is ready.

Start with one handle

The default arch uses P0 = (0, 0), P1 = (1, 2), and P2 = (2, 0). Hold the endpoints fixed and move P1 upward. The middle of the curve rises, while the exact ends stay where they began. Move P1 to one side and watch the arch lean toward that side.

Open Advanced settings and enable Interpolation. The first interpolation layer finds A between P0 and P1 and B between P1 and P2. The second finds the final point between A and B. At t = 0.5, A and B are the midpoints of their edges, then the marker is the midpoint between them. Set other values of t to see the same fraction applied at both layers.

For precise handles, use the x and y fields. Try putting P1 at (1, 0) with the original endpoints. The result travels on a line. Move the handle farther along that line beyond P2 and the curve can overshoot the end before coming back to it. Collinearity confines the curve to a line, while the control positions determine how it is traced.

Work out the formula and the vertex

The first layer can be written A = (1 − t)P0 + tP1 and B = (1 − t)P1 + tP2. Substitute those expressions into (1 − t)A + tB. The middle point appears twice, so its weight includes a factor of two. That middle weight peaks at one half when t = 0.5. It never reaches one, which helps explain why P1 is usually away from the curve.

With non-collinear points, a quadratic Bézier segment lies on a parabola. Its most extreme plotted x and y values depend on the orientation as well as the location of the controls. For a horizontal arch like the default example, the y maximum is also the familiar vertex. For a rotated example, an extremum measured along the graph axes can be at a different parameter from the vertex measured along the parabola’s own axis.

For one coordinate, take the derivative of its quadratic polynomial and solve where that linear expression is zero. Keep any root in the closed interval from zero to one. Compare the values there with both endpoints. An axis with constant coordinates has no isolated derivative root and its bounds coincide.

B(t) = (1 − t)²P0 + 2(1 − t)tP1 + t²P2

Verify the example and predict an edit

At t = 0.5 in the default curve, the first layer is (0.5, 1) and (1.5, 1). The final point is (1, 1). Because x(t) = 2t, the x derivative stays at 2. The y formula is 4t − 4t² and its derivative vanishes at t = 0.5. The graph, bounds, weights, and expanded equations should tell the same story.

Now move P1 to (1, 3) using the input fields, keeping t at 0.5. Its y coordinate has increased by one. Since the middle weight is one half, the marker should rise from y = 1 to y = 1.5. Return to the preset after the check. The same weight argument works for x changes at the selected parameter.

Find the vertex of a tilted arch

Choose Tilted arch to see the difference between the parabola vertex and the highest y on the chart. The acceleration vector of a nondegenerate quadratic points along the parabola axis. At the vertex, the tangent is perpendicular to that axis. The workspace finds where the derivative projected onto the axis vanishes, then checks that the parameter lies on the segment.

Compare the vertex readout with the x and y extrema. They can all have different parameter values. If the vertex lies on the extended parabola beyond your endpoints, the tool reports that there is no vertex on this segment.

Export or elevate the degree

In an SVG path use M to move to P0 and Q to give P1 and P2. On Canvas, moveTo establishes the start and quadraticCurveTo takes the handle and endpoint. Graphics y goes down, so the copied coordinates use the opposite y sign from the workspace. The viewBox, transform, or canvas origin in your own document determines how this output is placed.

Elevate to cubic creates four controls that trace the same points at the same t values. Keep the two ends. Move from each end toward the old handle by two thirds of the distance to find the new interior handles. For the default arch, the new controls are (0, 0), (2/3, 4/3), (4/3, 4/3), and (2, 0). The mathematical relationship is used before export rounding.

Open the elevated result in the cubic tool and compare the point at t = 0.5. The cubic provides two independent handles if you subsequently want to adjust the start and end directions. The original quadratic is simpler to edit when one control is enough, such as for a small drawn cap or a single gentle stroke.

Frequently asked questions

Where is the top of a quadratic curve?

For the plotted y maximum, read the y bounds and the listed y roots. A root outside zero to one belongs to the continued polynomial beyond the Bézier segment. If no root in range is a maximum, the greater endpoint y is the maximum.

Does degree elevation change the curve?

The dedicated elevation operation preserves the parametrized curve up to floating-point precision. Moving any new cubic handle afterward can change it.

Can three controls make a circle?

A polynomial quadratic can approximate a short circular arc. Exact circular arcs require a different representation, such as an SVG arc command or a rational Bézier curve with weights.

Further reading · MDN’s SVG path commands

Explore related tools