1. Home
  2. Mechanisms
  3. Elliptic trammel
On this page
  1. Three things to try
  2. Why it forms an ellipse
  3. Applications
  4. What this page does not cover
  5. How the values are calculated

Ellipse compass (trammel): how a point on a rod sliding in perpendicular slots traces an ellipse

The ends of a rod of length L slide in two perpendicular slots. A point P along the rod traces an ellipse. If it is p from end A, the radii are L − p horizontally and p vertically.

Ellipse at the initial values70 × 30mm (horizontal and vertical radii)
Rod midpointcircleradius 50 mm at p = L / 2
Rod endline segmentmoves back and forth 200 mm along the slot
Difference from the equationat most 8e-13at every point on the path

The initial values are L = 100 mm and p = 30 mm. In the experiment below, you can compare measurements of the path with the values from the equation.

Move the ellipse compass and see the point's path

Move the ellipse compass and see the point's pathEllipse compass. Both ends of the rod slide in two perpendicular slots, and point P midway along the rod traces an ellipse.ABP

Position for the initial values (L 100, p 30 mm). Enable JavaScript to change the dimensions and set the mechanism in motion.

Dimensions (mm)
Path shapeEllipse
Radii (from formula), horizontal and verticalHorizontal 70.00 mm, vertical 30.00 mm
Radii (measured from path), horizontal and verticalHorizontal 70.00 mm, vertical 30.00 mm
Maximum deviation from the ellipse equation7.9e-13

Three things to try

  1. Change the pencil position p As you move p from 30 toward 50 mm (the rod midpoint), the ellipse becomes rounder. At the midpoint, it becomes a circle with radius 50 mm. Swapping p and L − p produces the same ellipse rotated by 90°.
  2. Set p to 0 The pencil moves to end A, and the ellipse collapses to a vertical radius of 0. The point only moves back and forth in the horizontal slot over a distance of 200 mm (2L).
  3. Set p greater than L Extend the pencil beyond the rod to 140 mm, and it traces a vertically elongated ellipse with horizontal and vertical radii of 40 mm and 140 mm. The radii follow the same equation (|L − p| and p).

Why it forms an ellipse

Let φ be the angle between the rod and the horizontal slot. End A is at x = L cos φ, and end B is at y = L sin φ. Point P is located p / L of the way from A to B along the rod.

x = (L − p) cos φ,  y = p sin φ This is the equation of an ellipse with radii L − p and p: (x / (L − p))² + (y / p)² = 1

In the experiment, the engine's general-purpose solver finds the point's position from the conditions that both ends lie in their slots and the rod has length L.

The ellipse equation is used only to check the result. We verify each time we build the page that the difference from the equation is at most 8e-13 at every point on the path.

Applications

  • Drafting and woodworkingIt is used in drafting tools for drawing ellipses (ellipse compasses) and in woodworking jigs for making ellipses.
  • An example of a sliding-slot mechanismLike the Scotch yoke, this mechanism uses a sliding slot. It is an example of how the motion of a point sliding in a slot can form a circle or an ellipse.

What this page does not cover

  • It calculates the kinematics of planar rigid bodies. It does not calculate errors caused by friction between the slots and rod or by play in the clearances.
  • It covers only cases where the two slots intersect at a right angle.

How the values are calculated

The intersection of the slots is fixed to the ground. A is placed on the horizontal line and B on the vertical line. The general-purpose solver is given the condition that AB has length L, and the rod is rotated through one revolution in 360 steps. We recalculate and verify that the path is an ellipse, the midpoint traces a circle, and the end traces a line segment along the slot when we build this page. The calculation engine version is 0.1.0.

Published November 21, 2026, updated November 23, 2026. By JIT株式会社; every number is computed by the site's kinematics engine.