HomeAll CategoriesCalculating Period of Pendulum with Steps | Free, Any Units

Calculating Period of Pendulum with Steps | Free, Any Units

Calculating Period of Pendulum

Free pendulum period calculator: find the period T, the length L or gravity g with T = 2π√(L/g), any units, the exact large-angle period, physical, conical and torsion pendulums, lab data analysis with T² vs L, every step and four charts.

PhysicsOscillationsSimple Harmonic MotionStep by StepAny UnitsLab DataFree

⚡ 0. Quick Answer

Calculating the period of a pendulum uses T = 2π√(L/g): the time for one full swing depends only on the length L and gravity g. A 1.00 m pendulum where g = 9.81 m/s² has T = 2π√(1.00/9.81) = 2.01 s.

T = 2π√(L / g)    [T in s, L in m, g in m/s²]

Rule of thumb: a pendulum about 1 m long ticks once per second each way (T ≈ 2 s). Four times the length doubles the period, and mass does not change it at all. Above about 15° amplitude, the true period is longer: 0.43% at 15°, 7.3% at 60°.

Key Takeaways

  • Calculating period of pendulum needs only two numbers: a 1.00 m pendulum on Earth swings with T = 2.01 s.
  • The period grows with the square root of length: 4× the length gives 2× the period (0.25 m gives 1.00 s, 1.00 m gives 2.01 s).
  • Mass and the material of the bob do not appear in T = 2π√(L/g); a 50 g and a 5 kg bob on the same string give the same period.
  • The small-angle formula underestimates the true period by 0.19% at 10°, 1.7% at 30° and 18% at 90°.
  • Rearranged, g = 4π²L/T²; plotting T² against L gives a straight line with gradient 4π²/g, here 4.02 s²/m, so g = 9.81 m/s².

📚 1. What Is the Period of a Pendulum?

The period of a pendulum is the time it takes to make one complete swing: out to one side, across to the other side, and back to where it started. It is written T and measured in seconds (s). Its reciprocal is the frequency f = 1/T, measured in hertz (Hz).

A simple pendulum is a small heavy bob on a light string that does not stretch. For small swings (under about 15°) its motion is simple harmonic motion, and the period is T = 2π√(L/g). Here L is the length from the pivot to the centre of the bob, and g is the local acceleration due to gravity. Worked one-liner: L = 0.50 m, g = 9.81 m/s² gives T = 2π√(0.50/9.81) = 1.42 s.

Calculating the period of a pendulum is part of CBSE and ICSE Class 9 and Class 11 physics, IGCSE, GCSE and A level, AP Physics 1, IB Physics, JEE and NEET, and first-year university mechanics. Engineers use it to design clocks, seismometers, crane loads and tuned-mass dampers, and lab students use it to measure g.

A short history: Galileo noticed around 1602 that a pendulum's swing time hardly depends on its amplitude. Christiaan Huygens built the first accurate pendulum clock in 1656 and showed in 1673 that wide swings are actually slower. The formula T = 2π√(L/g) is the small-angle result; the exact period needs an elliptic integral, which this calculator evaluates for you.

Pendulum typePeriod formulaWhat you needWhen to use it
Simple pendulum (small angle)T = 2π√(L/g)L (m), g (m/s²)Bob on a string, amplitude under 15°
Simple pendulum (large angle)T = T0 / AGM(1, cos(θ0/2))L, g, amplitude θ0Amplitude above 15°, exact to any angle below 180°
Physical (compound) pendulumT = 2π√(I / (m g d))I (kg·m²), m (kg), d (m)A rigid body swinging about a pivot
Uniform rod, pivot at one endT = 2π√(2L / (3g))L, gMetre rule or bar pendulum
Conical pendulumT = 2π√(L cosθ / g)L, g, cone angle θBob moving in a horizontal circle
Torsion pendulumT = 2π√(I / κ)I (kg·m²), κ (N·m/rad)Twisting wire or fibre, balance wheel
Mass on a spring (compare)T = 2π√(m / k)m (kg), k (N/m)Here mass matters, unlike the pendulum
Simple pendulum diagram for calculating period of pendulum A bob on a 1.00 m string swings 10 degrees either side of vertical. The period T is the time for one full swing, 2.01 s. The weight mg splits into mg sin theta along the arc and mg cos theta along the string. θ₀ = 10° L = 1.00 m mg One full swing T = 2π√(L/g) T = 2.01 s
Figure 1. A simple pendulum, L = 1.00 m, amplitude 10°. One period is the time from one extreme, across, and back again: 2.01 s with g = 9.81 m/s².

🧮 2. Enter Your Values

Solve for:

Scientific notation works: type 2.5e-2 or 2.5×10^-2. Length is measured to the centre of the bob, not to the top or bottom of it.

Each cluster is one pendulum length. Type its length, then paste the repeated timings, separated by commas. The group name is editable. The calculator finds the mean period of each cluster, its spread, g from each cluster, and g from the T² against L straight line.

Click the columns that should each become a cluster. Selected columns are loaded as separate clusters. A header such as "L = 0.50 m" or "0.5" sets the length automatically.

Batch values are read in the units named in the label. Download Doc gives every answer with its working.

📊 3. Results and Step-by-Step Working

Result
___
Enter your values and press Calculate to see the answer, its units and every step.

Live pendulum diagram

The diagram is drawn from your numbers after you press Calculate.

🧠 4. Understanding Your Answer, In Detail

4.1 What your number means physically

___ Press Calculate and this paragraph explains your period in plain words.

The period is a round-trip time. Half of it is the time from one extreme to the other. A quarter of it is the time from release to the lowest point, which is where the bob moves fastest. Frequency f = 1/T tells you how many full swings happen each second, and angular frequency ω = 2π/T (rad/s) is the number that appears inside the sine and cosine of the motion.

4.2 Is it a sensible size?

___ After you calculate, your answer is compared with everyday pendulums.

PendulumLength LPeriod T (g = 9.81 m/s²)
Desk toy, small bob0.10 m0.63 s
Metronome-like string0.25 m1.00 s
Seconds pendulum (one beat per second)0.994 m2.00 s
Playground swing2.5 m3.17 s
Foucault pendulum, Paris Panthéon67 m16.4 s

4.3 How the period scales

___ After you calculate, this shows what happens to your period if you change L or g.

Because T is proportional to √L, doubling the length multiplies the period by √2 = 1.414, and quadrupling it doubles the period. Because T is proportional to 1/√g, the same pendulum swings √(9.81/1.62) = 2.46 times slower on the Moon. Mass is missing from the formula: the heavier bob feels a larger pull, but it also has more inertia, and the two cancel exactly.

4.4 Amplitude and the small-angle error

___ After you calculate, the exact large-angle period and the size of the small-angle error appear here.

The formula T = 2π√(L/g) comes from replacing sinθ with θ. That is good to 0.05% at 5° and 0.43% at 15°, which is why textbooks use 15° as the cut-off. The exact period uses the complete elliptic integral K(k) with k = sin(θ0/2), computed here with the fast arithmetic-geometric mean: T = T0/AGM(1, cos(θ0/2)). The series T ≈ T0(1 + θ0²/16 + 11θ04/3072) agrees with it to better than 0.01% below 30°.

4.5 What the four charts show

Chart 1 is the square-root curve of T against L, with your pendulum marked. Chart 2 turns that curve into a straight line by plotting T² against L; its gradient is 4π²/g, so it is the graph your lab report needs. Chart 3 compares the exact period with the small-angle value as the amplitude grows. Chart 4 solves the full equation d²θ/dt² = −(g/L) sinθ numerically (fourth-order Runge-Kutta) and draws it next to the pure cosine of simple harmonic motion, so you can see the exact motion fall behind at large angles. In Lab Data mode the charts switch to your measured clusters.

4.6 How precise is the answer?

___ After you calculate, the significant figures and their source are explained here.

4.7 Limits of the model for this answer

The ideal model assumes a point bob, a massless string that does not stretch, no air drag and no friction at the pivot. Each of these makes the real period slightly different, usually by less than 0.5% in a school lab. Air drag reduces the amplitude over time but changes the period very little. A large bob on a short string acts as a physical pendulum, with a slightly longer period than L to its centre predicts.

4.8 Where this leads next

Once you can calculate the period of a pendulum you can measure g, design a clock that beats seconds, or move to energy in the swing with the potential energy calculator and the kinetic energy calculator. A mass on a spring follows the same simple harmonic motion, and its stiffness comes from the spring constant calculator.

✍ 5. How to Write Your Results in Research and Exams

These five cards fill in from your own numbers after you press Calculate. Copy the one that matches where the answer is going.

Exam answer (GRESS layout)
___
Conventions

Write the formula first, substitute with units, give the answer to the same significant figures as the least precise data value, and underline or box the final answer with its unit.

Final answer only
___
Conventions

One line, value with unit, and the number of significant figures in brackets if the question asks for it.

Lab report or research results sentence
___
Conventions

In a research paper or lab report, state the value with its uncertainty and unit, the method (formula or T² against L fit), the number of repeats n, and the amplitude used. Report the uncertainty to one or two significant figures and round the value to the same decimal place, for example g = 9.81 ± 0.02 m/s². Say which model you used (small-angle or exact) and give R² for a straight-line fit.

Methods sentence for a paper
___
Conventions

Methods describe how, not what you found: length measured to the centre of the bob, timing method, number of oscillations timed, amplitude, and the software used.

Plain text for a forum or chat
___
Conventions

Units written as m/s^2 and sqrt() so the line pastes anywhere without special characters breaking.

∑ 6. Formulas Used

Seven formulas cover calculating the period of a pendulum, every rearrangement, and the lab method. Each symbol has its SI unit. The worked numbers use the headline problem: L = 1.00 m, g = 9.81 m/s², θ0 = 10°.

①
Period of a simple pendulum (small angle)
T0 = 2π√(L / g)
T0Period for small swings, seconds (s)
LLength from pivot to centre of the bob, metres (m)
gAcceleration due to gravity, metres per second squared (m/s²)
Example2π√(1.00/9.81) = 2.006 s, so T = 2.01 s
②
Rearrangements: solve for L or g
L = g T² / (4π²)  ·  g = 4π² L / T²
LLength needed for a chosen period, m. T = 2.00 s gives L = 0.994 m (the seconds pendulum)
gGravity from a measured period, m/s². L = 0.750 m, T = 1.74 s gives g = 9.78 m/s²
RuleSquare T before you divide; the most common slip is using T instead of T²
③
Exact period at any amplitude
T = 4√(L/g) K(k) = T0 / AGM(1, cos(θ0/2)),   k = sin(θ0/2)
θ0Amplitude (release angle from vertical), radians (rad)
K(k)Complete elliptic integral of the first kind, no unit
AGMArithmetic-geometric mean, repeat a→(a+b)/2, b→√(ab) until equal; no unit
Exampleθ0 = 10°: factor 1.00191, so T = 2.006 × 1.00191 = 2.010 s
④
Large-angle series (hand calculation)
T ≈ T0 (1 + θ0²/16 + 11θ04/3072)
θ0Amplitude in radians (10° = 0.1745 rad)
RangeError below 0.01% up to 30°, 0.03% at 60°; use formula ③ above that
⑤
Physical (compound) pendulum and uniform rod
T = 2π√(I / (m g d))  ·  rod: T = 2π√(2L / (3g))
IMoment of inertia about the pivot, kg·m² (rod about one end: I = mL²/3)
mMass of the body, kg
dDistance from pivot to centre of mass, m
Example1.00 m rod, g = 9.81 m/s²: T = 2π√(2/29.43) = 1.64 s
⑥
Conical and torsion pendulums
T = 2π√(L cosθ / g)  ·  T = 2π√(I / κ)
θCone half-angle between string and vertical, rad
κTorsion constant of the wire, N·m/rad
ExampleConical, L = 1.00 m, θ = 30°: T = 1.87 s
⑦
Lab method: g from the T² against L gradient
T² = (4π²/g) L  ⇒  g = 4π² / gradient
gradientSlope of the best straight line of T² (s²) against L (m), s²/m
u(g)Uncertainty: g × u(gradient) / gradient, m/s²
ConstantStandard gravity gn = 9.80665 m/s² (exact by definition, CGPM 1901)
ExampleSample lab data gradient 4.023 s²/m: g = 39.478/4.023 = 9.81 m/s²

🔀 7. Pendulum Period Flowchart, Step by Step

This flowchart shows calculating the period of a pendulum step by step, using the same headline problem as Sections 6, 9, 10, 11 and 14: a 1.00 m pendulum, g = 9.81 m/s², released at 10°.

Start or result Data step Calculation step Yes or no check
StartA pendulum to timeString 1.00 m to the centre of the bob, released at 10° from vertical, on Earth
1
List the givens with unitsL = 1.00 m, g = 9.81 m/s², θ0 = 10°
2
Convert to SI units and radiansθ0 = 10 × π/180L already in m; θ0 = 0.1745 rad
CheckIs L measured to the centre of the bob?
YesCarry on. Here the 1.00 m runs to the centre.
No, fix itAdd the bob radius to the string length first.
3
Divide length by gravityL / g1.00 / 9.81 = 0.1019 s²
4
Take the square root√(L/g)√0.1019 = 0.3193 s
5
Multiply by 2πT0 = 2π × 0.3193T0 = 2.006 s
CheckIs the amplitude 15° or less?
YesSmall-angle error is under 0.43%. At 10° it is 0.19%.
NoUse the exact factor 1/AGM(1, cos(θ0/2)) before you round.
6
Apply the amplitude correctionT = T0(1 + θ0²/16)2.006 × 1.0019 = 2.010 s
CheckDo the units come out in seconds?
Yes√(m / (m/s²)) = √s² = s. Units check passed.
NoA length was left in cm or ft. Convert and redo step 3.
ResultT = 2.01 s (3 s.f.)f = 0.499 Hz, ω = 3.13 rad/s Units check ✓ Verified

The same numbers appear in Excel (Section 9), R (Section 10), Python (Section 11) and the hand method (Section 14).

📋 8. How to Use This Calculator

  1. Choose the pendulum type. Simple pendulum for a bob on a string, or rod, physical, conical or torsion.
  2. Pick what to solve for. Period T, length L or gravity g. The unknown field turns into a dashed box.
  3. Type the known values. Use the length to the centre of the bob, and any unit in the drop-down list.
  4. Set gravity. Type g, or choose a preset such as 9.81 m/s², 9.8 m/s² or the Moon.
  5. Enter the amplitude. The release angle from vertical in degrees or radians, for the exact period.
  6. Choose significant figures. Match the data is the exam-safe default.
  7. Or use Lab Data. Add one cluster per length, edit its name, and paste the timings separated by commas.
  8. Upload a CSV if you have one. Click the columns to use; each becomes its own cluster.
  9. Press Calculate. Read the answer, the GRESS working, the steps, the table, the four charts and the diagram.
  10. Download the working. Download Doc saves every step as text; Download PDF prints the results.

📄 9. How to Calculate the Period of a Pendulum in Excel

Excel has no pendulum function, but calculating the period of a pendulum takes one cell. Put the length in A2 and gravity in B2, with the units in the header row.

One-cell formula: =2*PI()*SQRT(A2/B2) with L (m) in A2 and g (m/s²) in B2 returns 2.006 s for 1.00 m and 9.81 m/s².

9.1 The functions you need

You wantExcel formulaNote
Period T=2*PI()*SQRT(A2/B2)A2 = L (m), B2 = g (m/s²)
Length for a period=B2*(C2/(2*PI()))^2C2 = T (s)
g from L and T=4*PI()^2*A2/C2^2Square T, not T alone
Degrees to radians=RADIANS(D2)D2 = amplitude in degrees
Large-angle period=C2*(1+RADIANS(D2)^2/16+11*RADIANS(D2)^4/3072)Series, good to 0.01% below 30°
Unit change=CONVERT(A2,"in","m")Case-sensitive unit strings
Lab gradient=SLOPE(C2:C5,A2:A5)C = T², A = L
g from the gradient=4*PI()^2/SLOPE(C2:C5,A2:A5)Units m/s²
Gradient and its error=LINEST(C2:C5,A2:A5,TRUE,TRUE)Second row holds the standard errors

9.2 Step by step

1 Set up columns with units in the header

Row 1 holds the labels: Length L (m), g (m/s²), Period T (s), Amplitude (deg). Row 2 holds the headline problem.

A2 = 1.00   B2 = 9.81   D2 = 10
Excel setup with units in the headerpendulum.xlsx - Excelfx1.00ABCD1Length L (m)g (m/s²)Period T (s)Amp (deg)21.009.8110

Length 1.00 m and gravity 9.81 m/s² typed as plain numbers, units only in the header.

2 Type the period formula

In C2 type the formula. PI() needs its empty brackets.

=2*PI()*SQRT(A2/B2)
Excel period formula returns 2.006pendulum.xlsx - Excelfx=2*PI()*SQRT(A2/B2)ABCD1Length L (m)g (m/s²)Period T (s)Amp (deg)21.009.812.00610

C2 returns 2.006 s; format to 3 significant figures to give 2.01 s.

3 Add the large-angle correction

Excel trig functions use radians, so wrap the angle in RADIANS.

=C2*(1+RADIANS(D2)^2/16+11*RADIANS(D2)^4/3072)
Excel large-angle correction returns 2.010pendulum.xlsx - Excelfx=C2*(1+RADIANS(D2)^2/16+11*RADIANS(D2)^4/3072)ABCDE1Length L (m)g (m/s²)Period T (s)Amp (deg)T exact (s)21.009.812.006102.010

At 10° the period rises from 2.006 s to 2.010 s, a 0.19% change.

4 Find g from lab data with SLOPE

Put lengths in A2:A5, mean periods in B2:B5 and their squares in C2:C5, then divide 4π² by the gradient.

=4*PI()^2/SLOPE(C2:C5,A2:A5)
Excel SLOPE gives g from lab datapendulum.xlsx - Excelfx=4*PI()^2/SLOPE(C2:C5,A2:A5)ABCDEF1L (m)Mean T (s)T² (s²)Gradientg (m/s²)20.251.0041.0084.0239.81430.501.4162.00540.751.7363.01451.002.0064.024

Gradient 4.023 s²/m gives g = 9.81 m/s² from four lengths.

9.3 The awkward cases

  • =SIN(30) returns −0.988 because 30 is read as radians. Use =SIN(RADIANS(30)) = 0.5.
  • CONVERT unit strings are case-sensitive: "in", "ft" and "m" work, "M" does not and gives #N/A.
  • Very small periods display as 0.00 unless you use the number format 0.00E+00.
  • Excel keeps about 15 significant digits, far more than any pendulum measurement.

9.4 Why Excel might disagree with R, Python or your textbook

SituationWhat happensFix
Different g9.8 gives 2.007 s, 9.81 gives 2.006 s, 10 gives 1.987 s for L = 1.00 mUse the g your syllabus or lab states
RoundingExcel ROUND is half-up; R and Python round() are half-evenOnly round the final answer
Degrees vs radiansTrig on 10 instead of 0.1745 gives nonsenseWrap angles in RADIANS()
Series vs exactThe series is 0.01% low at 30°, more above 60°Use R or Python ellipk for large angles
Fit through originSLOPE allows an intercept; forcing zero changes g slightly (9.819 vs 9.814 m/s²)State which you used

9.5 Charting it

Select the L and T² columns, insert a Scatter chart (never the Line chart type, which spaces x evenly), then add a linear trendline with "Display equation on chart". Label the axes "Length L (m)" and "Period squared T² (s²)". The trendline slope is the gradient for g = 4π²/gradient.

9.6 Errors you will hit

ErrorCauseFix
#NUM!Square root of a negative length or gCheck the signs of your inputs
#DIV/0!g or T cell is empty or zeroFill the cell or wrap in IFERROR
#VALUE!Text like "1.00 m" in a number cellKeep units in the header only
#N/AWrong CONVERT unit stringUse "m", "in", "ft" exactly
#NAME?Typed PI without bracketsUse PI()

📈 10. How to Calculate the Period of a Pendulum in R

Copy the whole block. It runs in RStudio, Posit Cloud or with Rscript pendulum.R, using base R only. Change L, g and theta0_deg in Part 1 for your own pendulum.

10.1 The complete script

R, base only, saves pendulum_T2_vs_L.png at 300 dpi

# Pendulum period calculator in R - StatsUnlock (statsunlock.com)
# Base R only. Runs in RStudio, Posit Cloud or Rscript.

# ---- 1. Your values (SI units) ---------------------------------
L <- 1.00          # length to centre of bob, m
g <- 9.81          # gravity, m/s^2
theta0_deg <- 10   # amplitude, degrees

# ---- 2. Small-angle period ---------------------------------------
T0    <- 2 * pi * sqrt(L / g)     # s
f     <- 1 / T0                   # Hz
omega <- 2 * pi / T0              # rad/s

# ---- 3. Exact period with the arithmetic-geometric mean ------------
agm <- function(a, b, tol = 1e-15) {
  while (abs(a - b) > tol) {
    a_new <- (a + b) / 2
    b <- sqrt(a * b)
    a <- a_new
  }
  a
}
th <- theta0_deg * pi / 180       # R trig functions use radians
T_exact  <- T0 / agm(1, cos(th / 2))
T_series <- T0 * (1 + th^2 / 16 + 11 * th^4 / 3072)
err_pct  <- (T_exact - T0) / T0 * 100

cat(sprintf("T0 (small angle) = %.4f s -> %s s\n", T0, signif(T0, 3)))
cat(sprintf("f = %.4f Hz, omega = %.4f rad/s\n", f, omega))
cat(sprintf("T exact (AGM)    = %.4f s\n", T_exact))
cat(sprintf("T series         = %.4f s\n", T_series))
cat(sprintf("Small-angle error = %.3f %%\n", err_pct))

# ---- 4. Units and substitution check -------------------------------
L_back <- g * (T0 / (2 * pi))^2
cat(sprintf("Check: L from T0 = %.4f m (should be %.2f m)\n", L_back, L))

# ---- 5. Lab data: g from the T^2 against L gradient -------------------
lab <- data.frame(
  L = rep(c(0.25, 0.50, 0.75, 1.00), each = 5),
  T = c(1.00, 1.01, 0.99, 1.02, 1.00,
        1.42, 1.41, 1.43, 1.42, 1.40,
        1.74, 1.73, 1.75, 1.74, 1.72,
        2.01, 2.00, 2.02, 2.01, 1.99))
means <- aggregate(T ~ L, data = lab, FUN = mean)
fit   <- lm(I(T^2) ~ L, data = means)
slope <- coef(fit)[["L"]]
se_slope <- summary(fit)$coefficients["L", "Std. Error"]
g_fit <- 4 * pi^2 / slope
u_g   <- g_fit * se_slope / slope
cat(sprintf("Gradient = %.4f s^2/m, g = %.3f +/- %.3f m/s^2, R^2 = %.5f\n",
            slope, g_fit, u_g, summary(fit)$r.squared))

# ---- 6. Figure: T^2 against L, saved at 300 dpi ----------------------
png("pendulum_T2_vs_L.png", width = 6, height = 4, units = "in", res = 300)
plot(means$L, means$T^2, pch = 19, col = "#2563eb",
     xlab = "Length L (m)", ylab = "Period squared T^2 (s^2)",
     main = "T^2 against L for a simple pendulum", xlim = c(0, 1.1), ylim = c(0, 4.5))
abline(fit, col = "#16a34a", lwd = 2)
legend("topleft", bty = "n", legend = sprintf("g = %.2f m/s^2", g_fit))
dev.off()

Output when run (tested): T0 (small angle) = 2.0061 s -> 2.01 s, T exact (AGM) = 2.0099 s, Small-angle error = 0.191 %, Gradient = 4.0227 s^2/m, g = 9.814 +/- 0.022 m/s^2, R^2 = 0.99999.

10.2 What each part does

PartWhat it does
1Inputs in SI units, in one obvious place
2Small-angle period, frequency and angular frequency
3Exact period with the arithmetic-geometric mean, plus the series
4Substitution check: L recovered from T
5Lab data: mean period per length, then lm(I(T^2) ~ L) and g = 4π²/gradient
6The T² against L figure, saved at 300 dpi

R traps: sin() and cos() take radians; round() is half-even; inside a formula, T^2 must be wrapped as I(T^2) or lm reads it as an interaction; log() is the natural log.

10.3 What the figure shows

Four blue points (the mean T² at 0.25, 0.50, 0.75 and 1.00 m) sit on a green straight line through almost the origin. The gradient 4.023 s²/m gives g = 9.81 m/s². A clear curve or a big intercept means a systematic error, often a length measured to the wrong point.

10.4 Common problems and fixes

  • Error in lm: object 'T' not found. The column name must match; T is also R's TRUE shortcut, so name it Tp if you hit odd errors.
  • The plot window is blank. The png device writes to a file; open pendulum_T2_vs_L.png in your working folder.
  • g is 1000 times too small. Lengths were entered in mm; divide by 1000.

10.5 Useful one-liners

  • 2*pi*sqrt(1/9.81) gives 2.006 s.
  • 9.81*(2/(2*pi))^2 gives 0.994 m, the seconds pendulum.
  • 4*pi^2*0.75/1.74^2 gives 9.78 m/s².

🐍 11. How to Calculate the Period of a Pendulum in Python

Install once: pip install numpy scipy matplotlib

11.1 The complete script

Python 3, saves pendulum_T2_vs_L.png at 300 dpi

# Pendulum period calculator in Python - StatsUnlock (statsunlock.com)
# pip install numpy scipy matplotlib
import numpy as np
from scipy.special import ellipk
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt

# ---- 1. Your values (SI units) ---------------------------------
L = 1.00        # length to centre of bob, m
g = 9.81        # gravity, m/s^2 (scipy.constants.g is 9.80665)
theta0_deg = 10 # amplitude, degrees

# ---- 2. Small-angle period ---------------------------------------
T0 = 2 * np.pi * np.sqrt(L / g)          # s
f = 1 / T0                               # Hz
omega = 2 * np.pi / T0                   # rad/s

# ---- 3. Exact period at this amplitude -----------------------------
th = np.radians(theta0_deg)              # math and numpy trig use radians
k = np.sin(th / 2)
T_exact = 4 * np.sqrt(L / g) * ellipk(k**2)   # SciPy takes m = k^2, not k

def agm(a, b, tol=1e-15):
    while abs(a - b) > tol:
        a, b = (a + b) / 2, np.sqrt(a * b)
    return a

T_agm = T0 / agm(1.0, np.cos(th / 2))
T_series = T0 * (1 + th**2 / 16 + 11 * th**4 / 3072)
error_pct = (T_exact - T0) / T0 * 100

print(f"T0 (small angle) = {T0:.4f} s  -> {T0:.3g} s")
print(f"f = {f:.4f} Hz, omega = {omega:.4f} rad/s")
print(f"T exact (ellipk)  = {T_exact:.4f} s")
print(f"T exact (AGM)     = {T_agm:.4f} s")
print(f"T series          = {T_series:.4f} s")
print(f"Small-angle error = {error_pct:.3f} %")

# ---- 4. Units and substitution check -------------------------------
L_back = g * (T0 / (2 * np.pi))**2
print(f"Check: L from T0 = {L_back:.4f} m (should be {L} m)")

# ---- 5. Lab data: g from the T^2 against L gradient -------------------
lengths = np.array([0.25, 0.50, 0.75, 1.00])            # m
times = [[1.00, 1.01, 0.99, 1.02, 1.00],
         [1.42, 1.41, 1.43, 1.42, 1.40],
         [1.74, 1.73, 1.75, 1.74, 1.72],
         [2.01, 2.00, 2.02, 2.01, 1.99]]                 # s, one period each
T_mean = np.array([np.mean(t) for t in times])
T_se = np.array([np.std(t, ddof=1) / np.sqrt(len(t)) for t in times])
(slope, intercept), cov = np.polyfit(lengths, T_mean**2, 1, cov=True)
g_fit = 4 * np.pi**2 / slope
u_g = g_fit * np.sqrt(cov[0, 0]) / slope
print(f"Gradient = {slope:.4f} s^2/m, g = {g_fit:.3f} +/- {u_g:.3f} m/s^2")

# ---- 6. Figure: T^2 against L, saved at 300 dpi ----------------------
fig, ax = plt.subplots(figsize=(6, 4))
ax.errorbar(lengths, T_mean**2, yerr=2 * T_mean * T_se, fmt="o", color="#2563eb", label="measured")
xx = np.linspace(0, 1.1, 50)
ax.plot(xx, slope * xx + intercept, color="#16a34a", label=f"fit, g = {g_fit:.2f} m/s$^2$")
ax.set_xlabel("Length L (m)")
ax.set_ylabel("Period squared T$^2$ (s$^2$)")
ax.set_title("T$^2$ against L for a simple pendulum")
ax.legend()
fig.savefig("pendulum_T2_vs_L.png", dpi=300, bbox_inches="tight")
print("Saved pendulum_T2_vs_L.png")

Output when run (tested): T0 (small angle) = 2.0061 s -> 2.01 s, T exact (ellipk) = 2.0099 s, T exact (AGM) = 2.0099 s, g = 9.814 +/- 0.022 m/s^2. Python and R agree to every printed digit.

11.2 What each part does

Part 1 holds the inputs; Part 2 the small-angle period; Part 3 the exact period two ways (SciPy's elliptic integral and the AGM); Part 4 the substitution check; Part 5 the lab fit with np.polyfit(..., cov=True), whose covariance gives the gradient uncertainty; Part 6 the figure.

Python traps: ^ is bitwise XOR, so write T**2; np.sin and math.sin take radians; scipy.special.ellipk(m) takes m = k², not k, so ellipk(np.sin(th/2)) is wrong; scipy.constants.g is 9.80665, which may differ from your syllabus; np.std needs ddof=1 for a sample standard deviation.

11.3 What the figure shows

The same T² against L line as the R figure, with error bars of 2T·u(T) on each point. The legend prints g from the fit.

11.4 Common problems and fixes

  • ModuleNotFoundError: scipy. Run the pip line above, or use Google Colab where it is installed.
  • The period comes out complex or nan. A negative length or g reached the square root.
  • Exact period is huge. The amplitude was typed in degrees but used as radians.

11.5 Useful one-liners

  • 2*np.pi*np.sqrt(1/9.81) gives 2.006 s.
  • 4*np.sqrt(1/9.81)*ellipk(np.sin(np.radians(60)/2)**2) gives 2.153 s at 60°.
  • Run it in a terminal with python pendulum.py, in Jupyter, or in Google Colab.

📑 12. Reference Tables

12.1 Period against length on Earth (g = 9.81 m/s²)

Length LPeriod TFrequency f
0.10 m0.634 s1.58 Hz
0.25 m1.003 s0.997 Hz
0.50 m1.419 s0.705 Hz
0.75 m1.737 s0.576 Hz
0.994 m2.000 s0.500 Hz
1.00 m2.006 s0.498 Hz
2.00 m2.837 s0.352 Hz
5.00 m4.486 s0.223 Hz
10.0 m6.344 s0.158 Hz

12.2 Exact period factor T/T0 against amplitude

Amplitude θ0Exact T/T0Series T/T0Small-angle error
5°1.0004761.0004760.048%
10°1.0019071.0019070.191%
15°1.0043011.0043010.430%
20°1.0076691.0076690.767%
30°1.0174091.0174041.741%
45°1.0399731.0399163.997%
60°1.0731821.0728457.318%
90°1.1803411.17601218.03%
120°1.3728811.34305437.29%
150°1.7622041.59657676.22%
170°2.4393631.827724143.9%

Computed with the arithmetic-geometric mean (Carvalhaes and Suppes, 2008). The error column is how much T = 2π√(L/g) underestimates the true period.

12.3 Gravity on other worlds

Bodyg (m/s²)Period of a 1.00 m pendulum
Earth, standard (exact)9.806652.006 s
Moon1.624.94 s
Mars3.713.26 s
Venus8.872.11 s
Jupiter24.791.26 s

Source: NASA Goddard Planetary Fact Sheet (equatorial surface gravity), and the CGPM 1901 definition of standard gravity.

12.4 g on Earth by latitude (sea level)

Latitudeg (m/s²)Seconds-pendulum length
0° (equator)9.7800.991 m
30°9.7930.992 m
45°9.8060.994 m
60°9.8190.995 m
90° (pole)9.8320.996 m

Source: WGS 84 normal gravity formula (US National Geospatial-Intelligence Agency). Local g also falls by about 0.003 m/s² per km of height.

12.5 Unit conversions

FromTo SI
1 in0.0254 m (exact)
1 ft0.3048 m (exact)
1 cm0.01 m
1 ft/s²0.3048 m/s²
1 g09.80665 m/s² (exact)
1°π/180 = 0.017453 rad
1 g·cm²1 × 10−7 kg·m²
1 ms0.001 s

12.6 Constants used

ConstantValueStatus
Standard gravity gn9.80665 m/s²Exact by definition (CGPM 1901, kept in NIST CODATA 2022)
π3.14159265358979Mathematical constant
4π²39.4784176Used in g = 4π²L/T²

📝 13. Example Results

Eight worked problems for calculating the period of a pendulum, from a textbook case to the traps that cost marks.

1
TEXTBOOK

A 1.00 m pendulum on Earth

The classic exam opener.

A bob hangs on a string 1.00 m long (pivot to centre of the bob) and is released at 10°. Take g = 9.81 m/s².

L = 1.00 mg = 9.81 m/s²θ₀ = 10°
StepValue
T₀ = 2π√(1.00/9.81)2.006 s
Exact factor at 10°1.0019
T exact2.010 s
Example 1, 1.00 m pendulumθ₀ = 10°L = 1.00 mT = 2.01 s
Figure: 1.00 m pendulum at 10°, T = 2.01 s.

What it means: One full swing takes 2.01 s; the 10° amplitude adds only 0.19%.

How to write it: T = 2π√(L/g) = 2π√(1.00 m / 9.81 m/s²) = 2.01 s (3 s.f.).

2
EXAM: SOLVE FOR L

Length of a seconds pendulum

Working backwards from the period.

A clock pendulum must have T = 2.00 s so that each one-way swing takes 1 s. Find its length with g = 9.81 m/s².

T = 2.00 sg = 9.81 m/s²Find L
StepValue
L = gT²/(4π²)9.81 × 4.00 / 39.48
L0.994 m
Check: 2π√(0.994/9.81)2.00 s
Example 2, seconds pendulumθ₀ = 4°L = 0.994 mT = 2.00 s
Figure: the seconds pendulum, 0.994 m.

What it means: A grandfather clock pendulum is just under one metre long.

How to write it: L = gT²/(4π²) = (9.81 m/s²)(2.00 s)² / 4π² = 0.994 m.

3
NON-SI UNITS

A 3.26 ft pendulum in US units

Feet in, seconds out.

A US textbook gives L = 3.26 ft and g = 32.2 ft/s². Find T without converting to metres.

L = 3.26 ftg = 32.2 ft/s²θ₀ small
StepValue
L/g0.10124 s²
√(L/g)0.31819 s
T2.00 s
Example 3, pendulum in feetθ₀ = 6°L = 3.26 ftT = 2.00 s
Figure: 3.26 ft (0.994 m) pendulum.

What it means: Units cancel as long as L and g use the same length unit.

How to write it: T = 2π√(3.26 ft / 32.2 ft/s²) = 2.00 s.

4
EVERYDAY

A playground swing pushed to 20°

Real life, slightly larger angle.

A swing has chains 2.5 m long to the seat (centre of mass of the child). It is pushed to 20°.

L = 2.5 mg = 9.81 m/s²θ₀ = 20°
StepValue
T₀3.17 s
Exact factor at 20°1.0077
T exact3.20 s
Example 4, playground swingθ₀ = 20°L = 2.5 mT = 3.2 s
Figure: swing at 20°, T = 3.2 s.

What it means: Push the swing every 3.2 s to keep it in step (resonance).

How to write it: T = 2π√(2.5/9.81) × 1.0077 = 3.2 s (2 s.f.).

5
EXTREME

The 67 m Foucault pendulum, Paris

The longest famous pendulum.

Foucault hung a 28 kg bob on a 67 m wire in the Panthéon in 1851. Find its period.

L = 67 mg = 9.81 m/s²θ₀ = 2°
StepValue
L/g6.830 s²
T16.4 s
Swings per hour219
Example 5, Foucault pendulumθ₀ = 2°L = 67 mT = 16 s
Figure: Foucault pendulum, not to scale.

What it means: Each swing takes 16 seconds, so visitors can watch it slowly.

How to write it: T = 2π√(67 m / 9.81 m/s²) = 16 s (2 s.f.).

6
NOT PHYSICAL

Released from 180°

Where the formula stops making sense.

A rigid rod pendulum is balanced exactly upside down (θ₀ = 180°) and let go.

θ₀ = 180°k = sin 90° = 1K(1) = ∞
StepValue
Exact factor at 170°2.44
At 179°3.90
At 180°infinite
Example 6, inverted pendulumθ₀ = 170°rodT → ∞
Figure: amplitude near 180°; the period grows without limit.

What it means: At 180° the pendulum is in unstable balance and never completes a swing, so there is no period.

How to write it: No real period: T → ∞ as θ₀ → 180°.

7
MODEL LIMIT

Released at 60°

When T = 2π√(L/g) is too short.

A 1.00 m pendulum is released at 60°. Compare the small-angle and exact periods.

L = 1.00 mg = 9.81 m/s²θ₀ = 60°
StepValue
T₀ (small angle)2.006 s
T exact2.153 s
Error7.3%
Example 7 small-angle vs exact2.006 sSmall-angle2.153 sExact
Figure: small-angle vs exact period at 60°.

What it means: The simple formula is 0.15 s short, easily seen with a stopwatch over 10 swings.

How to write it: T = 2π√(L/g) / AGM(1, cos 30°) = 2.15 s.

8
TRAP

50 cm typed as 50 m

The units slip that costs marks.

A student measures 50 cm but types L = 50 into a formula that expects metres.

Measured 50 cmTyped 50 (m)Correct 0.50 m
StepValue
Wrong: 2π√(50/9.81)14.2 s
Right: 2π√(0.50/9.81)1.42 s
Ratio10 times
Example 8 unit trap14.2 s50 "m"1.42 s0.50 m
Figure: a 100 times larger length gives a 10 times larger period.

What it means: Always convert cm to m before the square root.

How to write it: L = 50 cm = 0.50 m, so T = 2π√(0.50/9.81) = 1.42 s.

✏️ 14. How to Solve the Period of a Pendulum by Hand, Step by Step

14.1 The written method (GRESS)

GivenL = 1.00 m, g = 9.81 m/s², θ0 = 10°
RequiredPeriod T (s)
EquationT = 2π√(L/g)
SubstituteT = 2π√(1.00 m / 9.81 m/s²)
SolveT = 2π × 0.3193 s = 2.006 s = 2.01 s (3 s.f.)

Then check: the unit is √(m / (m/s²)) = s, and 2 s is the right size for a 1 m pendulum. The amplitude of 10° is under 15°, so the small-angle formula is fine (error 0.19%).

14.2 On a scientific calculator

Casio fx-991EX (ClassWiz) or fx-991ES: 2×SHIFT×10x (gives π) ×√1÷9.81▶= → 2.006066681. Use the fraction key instead of ÷ if you prefer: the √ box then holds 1 over 9.81.

TI-84 Plus: 2×2nd^ (π) ×2ndx² (√) 1÷9.81)ENTER → 2.006066681.

For the amplitude correction, put the calculator in Rad mode or convert first: 10° × π/180 = 0.1745 rad, then 1 + 0.1745²/16 = 1.0019. Wrong mode is the number one reason two students get different answers.

14.3 Measure it yourself: a school lab practical

Finding g with a simple pendulum

  1. Clamp a split cork or two coins at the top so the string pivots at one fixed point.
  2. Hang a small dense bob. Measure L from the pivot to the centre of the bob with a metre rule (half the bob diameter from vernier callipers).
  3. Pull the bob aside less than 10° and release it without pushing.
  4. Start timing as the bob passes the lowest point (use a fiducial mark), and time 10 or 20 full oscillations.
  5. Divide by the number of oscillations to get T. Repeat 3 to 5 times for each length.
  6. Repeat for four to six lengths between 0.25 m and 1.20 m.
  7. Plot T² (s²) on the y-axis against L (m) on the x-axis and draw the best straight line.
  8. g = 4π² / gradient. Paste each length's timings into the Lab Data tab above to check your working.
L (m)Time for 10 oscillations t1, t2, t3 (s)Mean T (s)T² (s²)
0.5014.2, 14.1, 14.31.4202.016
0.7517.4, 17.3, 17.51.7403.028
1.0020.1, 20.0, 20.22.0104.040

Graph: T² against L should be a straight line through the origin; gradient ≈ 4.02 s²/m, so g ≈ 9.8 m/s².

Main errors and how to reduce them: reaction time (about 0.2 s) is spread over many swings by timing 10 or 20; length measured to the wrong point is fixed by measuring to the centre of the bob; a large amplitude lengthens T, so keep it below 10°; a swinging support or a conical (elliptical) path adds error, so clamp firmly and release in one plane. A phone sensor app such as phyphox can time the swings more precisely (Staacks et al., 2018).

14.4 Practice problems with answers

1. L = 0.40 m, g = 9.81 m/s². Find T.

T = 2π√(0.40/9.81) = 1.27 s

2. L = 1.50 m on Earth (9.8 m/s²). Find f.

T = 2.46 s, f = 0.407 Hz

3. What length gives T = 1.00 s? (g = 9.81 m/s²)

L = 9.81 × (1/2π)² = 0.248 m

4. L = 0.600 m, T = 1.55 s. Find g.

g = 4π² × 0.600 / 1.55² = 9.86 m/s²

5. A 30 in pendulum, g = 32.2 ft/s². Find T.

L = 2.5 ft, T = 2π√(2.5/32.2) = 1.75 s

6. The length is doubled. What happens to T?

T is multiplied by √2 = 1.41

7. A 1.00 m pendulum on Mars (3.71 m/s²). Find T.

T = 3.26 s

8. L = 1.00 m released at 45°. Find the exact T.

T = 2.006 × 1.0400 = 2.09 s (small-angle 2.01 s is 4.0% low)

9. 20 swings take 28.4 s and L = 0.50 m. Find g.

T = 1.42 s, g = 4π² × 0.50 / 1.42² = 9.79 m/s²

10. A student writes L = −0.8 m. What is T?

Not physical: a length cannot be negative, so there is no real period. Recheck the measurement.

14.5 Mistakes that lose marks

  • Forgetting to square T when finding g (g = 4π²L/T², not 4π²L/T).
  • Measuring L to the top or bottom of the bob instead of its centre.
  • Leaving L in cm (50 instead of 0.50) and getting a period 10 times too big.
  • Timing one swing to the side and back as "half" a period, or counting from 1 instead of 0.
  • Calculator in Deg mode when a formula needs radians.
  • Writing the answer with too many significant figures, or without a unit.
  • Saying the heavier bob swings faster: mass does not appear in the formula.

✅ 15. When to Use This Equation

Use T = 2π√(L/g) when

  • The bob is small compared with the string length.
  • The string is light and does not stretch.
  • The amplitude is 15° or less.
  • Air drag and pivot friction are small.
  • You want a quick answer to 3 significant figures.

Use something else when

  • The amplitude is above 15°: use the exact (elliptic) period.
  • The body is rigid and large: use the physical pendulum formula.
  • The bob moves in a circle: use the conical pendulum.
  • It twists rather than swings: use the torsion pendulum.
  • It hangs from a spring: use T = 2π√(m/k).

Four real examples

  • A grandfather clock pendulum, 0.994 m, beating seconds: simple formula, small amplitude, fine.
  • A child on a swing pushed to 45°: exact period needed, 4% longer than the formula.
  • A metre rule swinging from one end: physical pendulum, T = 1.64 s, not 2.01 s.
  • A ball on a string whirled in a horizontal circle at 30°: conical pendulum, T = 1.87 s.

Decision tree

  1. Does it swing about a pivot under gravity? If no, it is a spring or torsion oscillator.
  2. Is it a small bob on a long light string? If no, use the physical pendulum with I, m and d.
  3. Is the amplitude 15° or less? If yes, T = 2π√(L/g). If no, multiply by 1/AGM(1, cos(θ0/2)).
  4. Does the bob go round in a circle instead? Then use T = 2π√(L cosθ/g).

🔧 16. Common Mistakes and Troubleshooting

My period is about 10 times too big

Cause: the length was typed in cm as if it were m (50 instead of 0.50). Because T grows with √L, a 100 times larger length gives a 10 times larger period. Fix: pick cm in the unit list, or divide by 100.

My value of g is far too small or too large

Cause: T was not squared, or the time for 10 swings was used as one period. Fix: g = 4π²L/T², with T for one oscillation.

My calculator gives a different answer from my friend's

Cause: different g (9.8, 9.81 or 10) or Deg/Rad mode for the amplitude correction. Fix: agree on g, and use Rad mode for θ0²/16.

The book uses g = 10 m/s² and my answer is slightly different

Cause: g = 10 gives a period 1% shorter than g = 9.81. Fix: choose the 10 m/s² preset to match the book.

My measured period is longer than the formula predicts

Cause: a large amplitude, a length measured to the top of the bob, or a heavy string. Fix: keep the amplitude under 10°, measure to the centre, and set the amplitude in the calculator to see the exact period.

My T² against L graph does not pass through the origin

Cause: a constant error in L, usually the bob radius left out or added twice. Fix: the gradient still gives g correctly; the intercept tells you the length offset.

Excel shows #NUM! or #VALUE!

Cause: a negative number under SQRT, or text such as "1 m" in a cell. Fix: keep cells numeric and units in the header.

The calculator says "not physical"

Cause: a zero or negative length, gravity or period, or an amplitude of 180° or more. Fix: lengths and g must be positive; an amplitude of 180° means the bob is balanced upside down and never returns.

My lab clusters give different g values

Cause: random timing error is largest for short pendulums, where T is small. Fix: trust the gradient method over single clusters, and time more oscillations for short lengths.

Python's ellipk gives the wrong period

Cause: SciPy's ellipk takes the parameter m = k². Fix: use ellipk(np.sin(th/2)**2).

⚠️ 17. Assumptions and Limitations

Assumptions

  1. Small amplitude. Requires θ0 under about 15°. Check the release angle. When it fails, T = 2π√(L/g) underestimates the period (0.43% at 15°, 7.3% at 60°).
  2. Point mass bob. Requires a bob much smaller than L. When it fails, the real period is slightly longer than the formula predicts; use the physical pendulum.
  3. Massless, rigid string. Requires a light string that does not stretch. A heavy string moves the centre of mass up and shortens the period; a stretchy string lengthens it.
  4. No air drag or pivot friction. Drag reduces the amplitude each swing and slightly lengthens the period (by a tiny amount for a dense bob).
  5. Uniform g and a fixed support. A support that sways lengthens the period; local g varies by about 0.5% with latitude.
  6. Motion in one plane. A bob that moves in an ellipse acts partly as a conical pendulum and shortens the measured period.

Limitations

  1. The tool treats an undamped pendulum; damped and driven pendulums need an ODE model (see Butikov, 2008).
  2. Very large amplitudes near 180° are computed exactly but are unstable in practice.
  3. The lab fit is an ordinary least-squares line on mean T²; weighted fits need per-point uncertainties.
  4. Coupled, double and spring pendulums are outside this calculator.

🎯 18. Conclusion

What the answer is

___ Press Calculate and the conclusion is written from your own numbers.

What it means physically

Calculating the period of a pendulum shows that the swing time is set by geometry and gravity alone. The bob's mass cancels out, and for small swings the amplitude hardly matters. That is why Huygens could build a clock on it, and why a pendulum is still one of the simplest ways to measure g in a school or college lab.

Watch out for

The three errors that matter most are a length not measured to the centre of the bob, a period that was not squared when finding g, and an amplitude too large for the small-angle formula. Each of them changes the answer by more than the rounding does. Units are the fourth trap: centimetres and feet must be converted before the square root.

Next steps

For a lab report, use the Lab Data tab to fit T² against L and quote g with its uncertainty. For energy in the swing, try the potential energy calculator and the kinetic energy calculator. For the tension in the string at the lowest point, use the tension force calculator. Calculating the period of a pendulum is the first step into all of simple harmonic motion.

❓ 19. Frequently Asked Questions

How do you calculate the period of a pendulum?

Use T = 2π√(L/g): divide the length L (m) by gravity g (m/s²), take the square root, and multiply by 2π. For L = 1.00 m and g = 9.81 m/s², T = 2π × 0.3193 = 2.01 s. Measure L from the pivot to the centre of the bob.

What is the formula for the period of a pendulum?

The period of a simple pendulum is T = 2π√(L/g) for small swings. For larger swings the exact period is T = T₀ / AGM(1, cos(θ₀/2)), and a good hand formula is T ≈ T₀(1 + θ₀²/16 + 11θ₀⁴/3072) with θ₀ in radians.

Does mass affect the period of a pendulum?

No, mass does not affect the period of a simple pendulum. A heavier bob feels a bigger pull of gravity but also has more inertia, and the two cancel, so m is not in T = 2π√(L/g). A 50 g and a 5 kg bob on the same 1.00 m string both swing with T = 2.01 s.

Does amplitude affect the period of a pendulum?

Only a little for small swings, but a lot for large ones. The period is 0.19% longer at 10°, 1.7% longer at 30°, 7.3% longer at 60° and 18% longer at 90° than T = 2π√(L/g) predicts.

Does the length of a pendulum affect its period?

Yes, length is the main factor. The period grows with the square root of length, so four times the length doubles the period: 0.25 m gives 1.00 s and 1.00 m gives 2.01 s on Earth.

How does gravity affect the period of a pendulum?

Stronger gravity gives a shorter period, because T is proportional to 1/√g. A 1.00 m pendulum takes 2.01 s on Earth (9.81 m/s²) but 4.94 s on the Moon (1.62 m/s²).

What factors affect the period of a pendulum?

Length and gravity set the period; amplitude matters above about 15°. Mass, bob material and colour do not. Small effects come from air drag, a heavy or stretchy string, a large bob, and a support that moves.

What is the period of a 1 meter pendulum?

A 1 m pendulum has a period of about 2.0 s on Earth: T = 2π√(1.00/9.81) = 2.01 s, or 2.006 s with standard gravity 9.80665 m/s². Its frequency is about 0.50 Hz.

How do you find g from a pendulum period?

Rearrange to g = 4π²L/T². For example, L = 0.750 m and T = 1.74 s give g = 39.48 × 0.750 / 1.74² = 9.78 m/s². In a lab, plot T² against L and use g = 4π² divided by the gradient.

What is the period of a physical pendulum?

A physical (compound) pendulum has T = 2π√(I/(m g d)), where I is the moment of inertia about the pivot, m the mass and d the distance from the pivot to the centre of mass. A 1.00 m uniform rod pivoted at one end has T = 2π√(2L/(3g)) = 1.64 s.

What is the SI unit of the period of a pendulum?

The SI unit of period is the second (s). Frequency, its reciprocal, is measured in hertz (Hz), and angular frequency ω = 2π/T in radians per second (rad/s).

What is the difference between period and frequency of a pendulum?

Period T is the time for one full swing in seconds; frequency f is the number of swings per second in hertz, f = 1/T. A pendulum with T = 2.01 s has f = 0.498 Hz.

Why is the small-angle approximation used for pendulums?

Because replacing sin θ with θ turns the pendulum equation into simple harmonic motion with a neat answer, T = 2π√(L/g). The error is under 0.5% below 15°, smaller than a stopwatch can measure, so it is used in most exams and labs.

How do you calculate the period of a pendulum in Excel?

Put L (m) in A2 and g (m/s²) in B2 and type =2*PI()*SQRT(A2/B2). For 1.00 m and 9.81 m/s² it returns 2.006 s. For lab data, =4*PI()^2/SLOPE(T²range, Lrange) gives g.

How do you calculate the period of a pendulum in Python?

Use T = 2*np.pi*np.sqrt(L/g) with NumPy. For the exact large-angle period use scipy.special.ellipk: T = 4*np.sqrt(L/g)*ellipk(np.sin(theta0/2)**2), remembering that SciPy takes m = k² and angles in radians.

How do you calculate the period of a pendulum in R?

Type 2*pi*sqrt(L/g) in R; for L = 1 and g = 9.81 it prints 2.006. For lab data, fit lm(I(T^2) ~ L) and take g = 4*pi^2 divided by the slope.

How do you calculate the period of a pendulum on a scientific calculator?

Key in 2 × π × √(L ÷ g) and press equals. On a Casio fx-991EX, π is SHIFT then ×10ˣ; on a TI-84, π is 2nd then ^ and √ is 2nd then x². For 1.00 m and 9.81 m/s² the display shows 2.006066681.

What length pendulum has a period of 2 seconds?

About 0.994 m on Earth. From L = gT²/(4π²) = 9.81 × 2.00² / 39.48 = 0.994 m. This is the seconds pendulum used in grandfather clocks, because each one-way swing takes 1 s.

What is the period of a conical pendulum?

A conical pendulum has T = 2π√(L cos θ / g), where θ is the angle between the string and the vertical. For L = 1.00 m and θ = 30°, T = 2π√(0.866/9.81) = 1.87 s, shorter than the 2.01 s of the same string swinging.

Does air resistance affect the period of a pendulum?

Only very slightly. Air drag mainly makes the amplitude die away; it lengthens the period by a tiny fraction for a dense bob. A light, large bob such as a ping-pong ball is affected more, so use a small metal bob in the lab.

🔗 20. Cite This Tool

APA 7th
Pushbanathan, R. (2026). Calculating period of pendulum: Pendulum period calculator [Online calculator]. StatsUnlock. https://statsunlock.com/calculating-period-of-pendulum/
BibTeX
@misc{statsunlock_pendulum_2026, author = {Pushbanathan, Reegan}, title = {Calculating Period of Pendulum: Pendulum Period Calculator}, year = {2026}, publisher = {StatsUnlock}, url = {https://statsunlock.com/calculating-period-of-pendulum/}, note = {Accessed 26 November 2026}}
Methods sentence
Pendulum periods were calculated with T = 2π√(L/g) and the exact elliptic-integral period using the StatsUnlock pendulum period calculator (Pushbanathan, 2026).

🧰 21. Related Tools

📖 22. Glossary of Terms

TermMeaningSI unit
Amplitude (θ0)Largest angle of the string from verticalrad (or degrees)
Angular frequency (ω)2π/T, rate of change of phaserad/s
Arithmetic-geometric meanFast iteration used to compute the exact periodnone
BobThe mass at the end of the stringkg
Centre of massThe point where the mass acts as if concentratedm (position)
Compound pendulumAnother name for a physical pendulumnone
Conical pendulumA bob moving in a horizontal circle on a stringnone
DampingLoss of amplitude from drag and frictionnone
Elliptic integral K(k)The integral that gives the exact periodnone
Frequency (f)Number of oscillations per second, 1/THz
Gravity (g)Acceleration of free fall at a placem/s²
GradientSlope of the T² against L line, 4π²/gs²/m
IsochronismPeriod independent of amplitude (true only for small swings)none
Length (L)Pivot to centre of the bobm
Moment of inertia (I)Resistance to turning about the pivotkg·m²
OscillationOne complete back-and-forth swingnone
Period (T)Time for one complete oscillations
Physical pendulumA rigid body swinging about a pivotnone
Seconds pendulumA pendulum with T = 2 s, about 0.994 m longnone
Simple harmonic motionMotion where restoring force is proportional to displacementnone
Small-angle approximationsinθ ≈ θ for small θ in radiansnone
Torsion constant (κ)Torque per unit twist of a wireN·m/rad

📚 23. References

  1. Berg, R. E., & Marshall, T. S. (1991). Wilberforce pendulum oscillations and normal modes. American Journal of Physics, 59(1), 32-38. https://doi.org/10.1119/1.16702
  2. Butikov, E. I. (1999). The rigid pendulum: An antique but evergreen physical model. European Journal of Physics, 20(6), 429-441. https://doi.org/10.1088/0143-0807/20/6/308
  3. Butikov, E. I. (2008). Extraordinary oscillations of an ordinary forced pendulum. European Journal of Physics, 29(2), 215-233. https://doi.org/10.1088/0143-0807/29/2/005
  4. Carvalhaes, C. G., & Suppes, P. (2008). Approximations for the period of the simple pendulum based on the arithmetic-geometric mean. American Journal of Physics, 76(12), 1150-1154. https://doi.org/10.1119/1.2968864
  5. Gonçalves, L. N., Fernandes, J., Ferraz, A., Silva, A. G., & Sebastião, P. J. (2020). Physical pendulum model: Fractional differential equation and memory effects. American Journal of Physics, 88. https://doi.org/10.1119/10.0001660
  6. Hake, R. R. (1998). Interactive-engagement versus traditional methods: A six-thousand-student survey of mechanics test data for introductory physics courses. American Journal of Physics, 66(1), 64-74. https://doi.org/10.1119/1.18809
  7. Halloun, I. A., & Hestenes, D. (1985). The initial knowledge state of college physics students. American Journal of Physics, 53(11), 1043-1055. https://doi.org/10.1119/1.14030
  8. Hestenes, D., Wells, M., & Swackhamer, G. (1992). Force concept inventory. The Physics Teacher, 30(3), 141-158. https://doi.org/10.1119/1.2343497
  9. Hinrichsen, P. F. (2021). Review of approximate equations for the pendulum period. European Journal of Physics, 42(1), 015005. https://doi.org/10.1088/1361-6404/abad10
  10. Lima, F. M. S. (2008). Simple 'log formulae' for pendulum motion valid for any amplitude. European Journal of Physics, 29(5), 1091-1098. https://doi.org/10.1088/0143-0807/29/5/021
  11. Lima, F. M. S., & Arun, P. (2006). An accurate formula for the period of a simple pendulum oscillating beyond the small angle regime. American Journal of Physics, 74(10), 892-895. https://doi.org/10.1119/1.2215616
  12. Nelson, R. A., & Olsson, M. G. (1986). The pendulum: Rich physics from a simple system. American Journal of Physics, 54(2), 112-121. https://doi.org/10.1119/1.14703
  13. Parwani, R. R. (2004). An approximate expression for the large angle period of a simple pendulum. European Journal of Physics, 25(1), 37-39. https://doi.org/10.1088/0143-0807/25/1/006
  14. Price, J. F. (2003). Dimensional analysis of models and data sets. American Journal of Physics, 71(5), 437-447. https://doi.org/10.1119/1.1533057
  15. Qing-Xin, Y., & Pei, D. (2009). Comment on 'Approximation for a large-angle simple pendulum period'. European Journal of Physics, 30(5), L79-L82. https://doi.org/10.1088/0143-0807/30/5/L05
  16. Schlamminger, S., Chao, L., Lee, V., Newell, D. B., & Speake, C. C. (2022). The crane operator's tricks and other shenanigans with a pendulum. American Journal of Physics, 90(3), 169-176. https://doi.org/10.1119/10.0006965
  17. Staacks, S., Dorsel, D., Hütz, S., Stallmach, F., Splith, T., Heinke, H., & Stampfer, C. (2022). Collaborative smartphone experiments for large audiences with phyphox. European Journal of Physics, 43(5), 055702. https://doi.org/10.1088/1361-6404/ac7830
  18. Staacks, S., Hütz, S., Heinke, H., & Stampfer, C. (2018). Advanced tools for smartphone-based experiments: phyphox. Physics Education, 53(4), 045009. https://doi.org/10.1088/1361-6552/aac05e
  19. Tiesinga, E., Mohr, P. J., Newell, D. B., & Taylor, B. N. (2021). CODATA recommended values of the fundamental physical constants: 2018. Reviews of Modern Physics, 93(2), 025010. https://doi.org/10.1103/RevModPhys.93.025010
  20. Vogt, P., & Kuhn, J. (2012). Analyzing simple pendulum phenomena with a smartphone acceleration sensor. The Physics Teacher, 50(7), 439-440. https://doi.org/10.1119/1.4752056
STATS UNLOCK · statsunlock.com · Calculating Period of Pendulum
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Statistical Models

Important Plots & Charts

Calculators and Converters