Cam profile calculator
Design a disc cam for a translating knife-edge, roller or flat-faced follower. Set the lift, the rise, dwell and return angles and a motion law for each. You get the displacement, velocity, acceleration and jerk diagrams, the pressure angle, the undercutting check and the cam profile, animated and ready to download as points for CAD. Free, no sign-up, runs in your browser.
It opens on the worked example from Skill-Lync's cam and follower guide: a 30 mm rise in 120°, a 30° dwell, a 120° return, cycloidal motion at 600 rpm, a 40 mm base circle and a Ø20 mm roller.
Closed-form motion laws · checked against numerical geometry (337 checks at build) · Norton, Design of Machinery · Updated 22 Nov 2026
Dwell at the bottom: 90° (the rest of the turn). The cam turns anticlockwise; a positive offset moves the follower axis to the right of the cam centre, which lowers the pressure angle on the rise and raises it on the return. For a clockwise cam, use a negative offset.
- Displacement, velocity and acceleration are continuous all the way round and the jerk is finite: this meets the basic rule of cam design.
- Peak acceleration 169.6 m/s² (17.3 g). It grows with the square of the speed: at twice the rpm it is 4 times this.
- Largest pressure angle 24.3°, within the usual 30° limit for a translating follower.
- No undercutting: the pitch curve's smallest convex radius is 49.6 mm, 4.96 times the roller radius.
- The largest deceleration is 169.6 m/s². A 0.25 kg follower needs a spring force of at least 42.4 N there (plus margin, gravity and preload) to stay on the cam.
How to design a cam with this calculator
- Write down the motion program. How far the follower must lift (h), over how many degrees of cam rotation it rises, how long it waits at the top, how it returns and how long it rests. The four angles must add up to 360°; whatever is left over is the bottom dwell.
- Choose the motion laws and look at the diagrams. The SVAJ chart shows displacement s, velocity v, acceleration a and jerk j over one turn. An ∞ marks a jump: a velocity jump means infinite acceleration (a blow), an acceleration jump means infinite jerk (vibration).
- Size the base circle for the pressure angle. Raise the base circle until the largest pressure angle is 30° or less. If the cam has to stay small, an offset can lower the angle on the rise, at the cost of the return.
- Check the curvature. With a roller follower, the pitch curve's smallest convex radius must stay above the roller radius (Norton suggests about twice). With a flat face, the cam's radius of curvature must stay positive, and the face must be wide enough for the contact point's travel.
- Size the spring and export. The spring must supply mass times the largest deceleration, with margin. Then download the profile points and build the cam in CAD.
Which follower motion should you choose?
Each law moves the follower through the same lift in the same angle; they differ in how the velocity and acceleration are shaped. With x = θ/β the fraction of the rise completed (θ is the cam angle into the rise, β the rise angle):
On the worked example's rise (30 mm in 120° at 600 rpm, so ω = 62.83 rad/s and the rise takes 33.3 ms):
| Law | Peak v | Peak a | Peak jerk | At the dwells |
|---|---|---|---|---|
| Uniform velocity | 0.90 m/s | ∞ (ends) | ∞ | velocity jumps: a blow at each end |
| Simple harmonic (SHM) | 1.41 m/s | 133.2 m/s² | ∞ | acceleration jumps by 133.2 m/s² |
| Uniform acceleration (parabolic) | 1.80 m/s | 108.0 m/s² | ∞ | acceleration jumps by 108.0 m/s² |
| Cycloidal | 1.80 m/s | 169.6 m/s² | 31,978 m/s³ | acceleration starts and ends at 0 |
| 3-4-5 polynomial | 1.69 m/s | 155.9 m/s² | 48,600 m/s³ | acceleration starts and ends at 0 |
Parabolic motion has the lowest peak acceleration of any law for a given lift and angle, and cycloidal motion's peak is 1.57 times higher (π/2). But peak acceleration is not the whole story. Söylemez's METU notes put the basic rule this way: the motion curve "must be continuous and the first and second derivatives ... must be finite even at the transition points." Only the cycloidal and 3-4-5 laws meet it in a rise-dwell-return-dwell cam. SHM is fine for a rise followed straight by a return with no dwell in between (an eccentric circle cam gives exactly that).
Peak acceleration scales with the square of the speed: the cycloidal rise's 169.6 m/s² at 600 rpm becomes 679 m/s² at 1,200 rpm.
Pressure angle and the size of the base circle
For a translating roller or knife-edge follower with offset e (Rp is the prime circle: base circle plus roller radius):
The slope ds/dθ is largest in the middle of the rise, so that is where the pressure angle peaks. A bigger prime circle lowers it. Largest pressure angle on the worked example's motion (30 mm in 120°, radial follower):
| Prime circle Rp | SHM | Cycloidal | 3-4-5 polynomial |
|---|---|---|---|
| 30 mm | 27.9° | 33.7° | 32.1° |
| 40 mm | 23.0° | 28.3° | 26.8° |
| 50 mm | 19.6° | 24.3° | 22.9° |
| 60 mm | 17.0° | 21.2° | 20.0° |
| 70 mm | 15.1° | 18.8° | 17.8° |
| Smallest Rp for 30° | 26.8 mm | 36.4 mm | 33.6 mm |
An offset tilts the balance between rise and return. On the cycloidal worked example (Rp = 50 mm):
| Offset e | Rise, largest φ | Return, largest φ |
|---|---|---|
| 0 mm | 24.26° | 24.26° |
| 5 mm | 20.40° | 28.08° |
| 10 mm | 16.48° | 31.92° |
An offset helps when the rise is the loaded stroke (a valve opening against its spring is not; the spring loads the return) and the return is slower or lightly loaded.
Undercutting and cusps: when the cam can't be made
A roller follower's centre traces the pitch curve, and the cam surface is that curve moved inward by the roller radius. Where the pitch curve is convex with a radius smaller than the roller, the offset curve folds over itself. For a radial follower (e = 0), with s′ and s″ the first and second derivatives of s with respect to θ, the pitch curve's radius is below, and it must stay above the roller radius rr everywhere:
The "Undercut roller" example (lift 40 mm in 60° with SHM, base circle 10 mm, roller 25 mm) has a smallest pitch radius of 22.1 mm against a 25 mm roller, so it undercuts at the nose; its pressure angle, 49.5°, is far too steep as well. With a flat-faced follower the condition is on the cam itself, and the contact point slides along the face by ds/dθ:
So a flat face sets a minimum base circle that depends only on the motion. For the worked example's motion:
| Law | Smallest base circle, flat face | Contact travel each side of the axis |
|---|---|---|
| Simple harmonic (SHM) | 3.7 mm | ±22.5 mm |
| Cycloidal | 16.0 mm | ±28.6 mm |
| 3-4-5 polynomial | 11.8 mm | ±26.9 mm |
With a 10 mm base circle the cycloidal cam's radius of curvature reaches -6.0 mm, a cusp the flat face can't touch.
From the profile to CAD
The download gives the cam surface every 1° as x, y, z in millimetres, in the cam's own frame: the origin is the cam centre, and the rise starts at the top (+y), with the cam turning anticlockwise. In SOLIDWORKS, Insert > Curve > Curve Through XYZ Points opens the TXT file. Then use the curve in a sketch (Convert Entities) and extrude it. Other CAD tools import the CSV as a point set or spline.
For manufacture, a cam is usually cut on a CNC mill or wire EDM from many more points or the equations themselves, and ground after heat treatment. Treat 1° points as good enough for a model and a motion study, not for a production drawing.
What this calculator does not cover
- Oscillating (rocker arm) followers, which need the arm length and pivot position, and allow about 35° of pressure angle.
- Other motion laws such as modified trapezoidal, modified sine and higher polynomials (4-5-6-7), and splines for non-standard programs.
- Dynamics: follower train stiffness, spring surge, jump speed and the cam shaft torque. A motion study in SOLIDWORKS, ADAMS or MotionView gives those.
- Contact stress and wear between the roller and the cam, which need the face width and materials (the Hertz contact stress calculator does the line-contact case).
- Grooved (positive-drive) and conjugate cams, and cylindrical (barrel) cams.
Designing a cam and then proving it in a motion study, with contact forces, spring loads and valve lift at speed, is what multibody dynamics engineers do. Skill-Lync's MBD courses include a valve, cam and rocker assembly.
Frequently asked questions
How do you calculate a cam profile?
Pick the motion program (lift, rise angle, dwell, return angle and a motion law for each), choose the base circle and follower, then place the follower at every cam angle and rotate it back by that angle (kinematic inversion). For a roller follower the roller centre traces the pitch curve; the cam surface is the pitch curve moved inward by the roller radius. This calculator does that every 0.5° and lets you download the points.
Which follower motion is best for high speed?
One whose acceleration is continuous, so the jerk stays finite: cycloidal or a 3-4-5 polynomial. SHM and parabolic motion have the lower peak acceleration on paper (133.2 and 108.0 m/s² against 169.6 m/s² for cycloidal on a 30 mm, 120°, 600 rpm rise), but their acceleration jumps when the follower enters and leaves a dwell, which shakes the follower train. Norton calls the 3-4-5 polynomial a good all-round choice for double-dwell cams.
What is the pressure angle of a cam and what is its limit?
It is the angle between the direction the follower moves and the common normal at the contact point. The larger it is, the more of the contact force pushes the follower sideways against its guide instead of along it. Keep it at or below about 30° for a translating follower and about 35° for an oscillating one; beyond that a translating follower can jam. A flat-faced follower has a pressure angle of 0°.
How do you choose the base circle radius of a cam?
Make it large enough that the pressure angle stays within 30° and, for a roller follower, that the pitch curve's smallest radius stays well above the roller radius, but no larger, since a big cam costs space and mass. For the worked example (30 mm in 120°, roller Ø20 mm) the smallest prime circle for 30° is 26.8 mm with SHM, 33.6 mm with a 3-4-5 polynomial and 36.4 mm with cycloidal motion.
What is undercutting in a cam?
With a roller follower, if the pitch curve has a convex part sharper than the roller (radius of curvature smaller than the roller radius), the inward offset of the roller folds over itself. The cutter would remove metal the roller needs and the follower can't reproduce the motion. The cure is a larger base circle, a smaller roller or a gentler motion law.
Why does the follower need a spring?
During the second half of the rise and the first half of the return the follower decelerates, and only the spring (or gravity, or a groove) keeps it on the cam. The spring force must exceed mass times the largest deceleration, with margin: 42.4 N for a 0.25 kg follower on the worked example's cycloidal cam at 600 rpm, four times that at 1,200 rpm.
Related on Skill-Lync
- Cam and follower: types, motion laws, cam profile and uses
- Blog: motion analysis of a valve, cam and rocker in SOLIDWORKS
- Blog: modelling cam and follower mechanisms in MotionView
- Student project: designing a cam profile
- Theory of machines: free learning path
- Geneva mechanism calculator
- Planetary gear calculator
- All free engineering tools
Sources
- E. Söylemez, "8.3 Basic Cam Motion Curves", Mechanisms, Middle East Technical University: the uniform velocity, SHM, parabolic and cycloidal formulas and their peak velocities and accelerations, and the rule that the motion curve and its first and second derivatives must be continuous and finite at the transitions.
- R. L. Norton, Design of Machinery, ch. 18 "Cam Design Guidelines" (author's site): pressure angle about 30° for translating followers and about 35° for oscillating ones; the pitch curve's radius of curvature must exceed the roller radius to avoid undercutting, with about 2 as a good ratio (1.5 used successfully); no negative radius of curvature with a flat follower; the 3-4-5 polynomial as a good all-round double-dwell law.
- I. Valiente Blanco et al., "Cams Design II", Machine Theory, Universidad Carlos III de Madrid OpenCourseWare: base circle, prime circle, pitch curve by kinematic inversion, and "the pressure angle should not exceed 30º for translating followers, oscillating followers can have an angle up to 35º".
- ME3491 Theory of Machines notes, unit 1 (cams), Rohini College of Engineering and Technology (Anna University regulation 2021): follower types, the knife-edge follower "seldom used in practice" because of wear, prime circle = base circle + roller radius.
- Skill-Lync, scripts/verify/cam_profile.py: finds the peaks by finite differences, the pressure angle from the numerically differentiated pitch curve, the radii of curvature from three-point circles, the roller surface by offsetting along the numerical normal and the flat-face surface as the envelope of the face lines. The page compares 337 numbers with it when it is built.