The length of the string of lights that you need to wrap around your Christmas tree

3
Rockin' around the Christmas tree,
Have a happy holiday
     – Brenda Lee

An internet search for "How many lights do I need for my Christmas tree," returns many opinions. A popular answer is that you need "one strand of lights for each foot of your tree." Another common answer is "100 mini lights per vertical foot." However, strands vary in length. Furthermore, these easy-to-remember rules consider only the height of the tree. They ignore a fundamental fact of Christmas tree geometry: The tree is approximately a cone. If the base of the tree has a wide radius, you will need more lights than if the base of the tree has a small radius. Thus, when calculating the length of a string of lights for a Christmas tree, you should account for the shape of the tree, which includes both the height and the radius of the lowest branches. (Technically, the full tree height doesn't matter, only the height from the lowest branches to the top.)

I recently saw a post on social media that used math to compute the length of a helical string of lights wrapped on a perfectly conical Christmas tree that has height H and radius of the base R. Again, H measures only the "green" part of the tree, from the bottom of the first set of branches to the top of the tree. The formula is given in the next section. It is very complicated.

I think there is a better mathematical model that is simpler and for which the length of the lights is easier to compute. I call it the n-rings model. For the n-rings model, you first wrap the lights around the lowest set of branches. This makes a horizontal ring around the tree. You then pass the string up to the next set of branches and wrap the lights horizontally around the tree on that set of branches. You continue this process a total of n times until you wrap the lights around the last set of branches near the top of the tree. The length of the string of lights needed for this process is simple to evaluate by using a handheld calculator (or the calculator app on your phone).

You can use any units in these formulas. This article uses "feet" because that is the US measurement used for Christmas tree heights and for strings of lights.

The helical model of stringing lights

The helical model for stringing lights looks like the images below. In these images, a string of lights wraps around a perfectly conical tree with base radius R and branch-height H. The branch-height measures the height from the lowest branch to the top of the tree. It excludes the trunk and tree stand. In the images, n=10, R=2, and H=5.

The string of light progresses up the tree at a constant rate. The lights wrap around the tree a total of n times. In the images, n=10. For any value of n, the social media post claims that the formula for the length of the lights is given by the following complicated expression:
\( L_\mbox{Helix} = \frac{H}{2} \sqrt{1+R^2(1+(2\pi n)^2)} + \frac{H(1+R^2)}{4\pi n R} \sinh^{-1} \left(\frac{2\pi n R}{\sqrt{1+R^2}}\right) \)

Yuck! Not only is this formula complicated, but it involves the function "\(\sinh^{-1}\)," which is called the "inverse hyperbolic sine" function. Some simple calculators do not even contain a key for this function, although most scientific calculators can compute this function by combining a "2nd" or "inverse" key with the "sinh" key. If your calculator doesn't support this function, you can use the identity \(\sinh^{-1}(x) = \log\left(x + \sqrt{x^2 + 1}\right)\). No matter how you express it, the formula is complicated to use. The formula can be derived by parameterizing the helix and applying the arclength formula from multivariable calculus.

I'll confess: I don't know how the author derived this formula. There are several terms that looks wrong to me, so I rederived the formula from first principals by using the arclength formula. I got a different result. Here's the formula I got for the helical length:
\( L_\mbox{Helix} = \frac{1}{2} \sqrt{H^2+R^2(1+(2\pi n)^2)} + \frac{H^2+R^2}{4\pi n R} \sinh^{-1} \left(\frac{2\pi n R}{\sqrt{H^2+R^2}}\right) \)

In this article, I use the second formula. In the images, the length of the helical string of lights wrapped n=10 times is 63.33 feet.

The n-rings model of stringing lights

The helical model is not always an accurate model of how people string lights on their tree. I use the n-rings approach, perhaps because I have an artificial tree for which the branches are more or less aligned in rows. My tree has a total of 12 rings of branches that are about 6 inches apart, so it is natural to wrap each set of branches with lights. The n-rings model for stringing lights looks like the images below, which again use R=2 and H=5.

In the images, n=10 because there are 10 horizontal rings of lights. Each ring is connected by a slanted vertical segment that connects each horizontal ring to the next one above it. (I put the vertical segment of light on the back of the tree.) For any value of n, the formula for the length of the lights is given by the following simple expression:
\( L_\mbox{Rings} = \sqrt{R^2 + H^2} + (n+1) \pi R \)

Ah! This formula is much simpler! In the images, the length of the string of lights in the n-rings model is 74.50 feet when n=10. Notice that this length is longer than the length for the helical model. This is always the case. Therefore, you can always use the simpler n-rings formula if you are trying to estimate how many boxes of lights you'll need for a conical tree of a given height and base radius. For the math nerds, the formula is derived in the Appendix.

A SAS program to compute the length of Christmas tree lights

You can write a program to compute length of lights for the two models. I think that placing lights about 6 inches (0.5 feet) apart looks nice, so for a tree that has height H, I suggest winding the lights around the tree n = ceil(2*H) times. (Math comment: The formulas don't care whether n is an integer. They still make sense if you want to wrap the lights 10.5 times!)

Trees come in many shapes and sizes, from small "tabletop trees" to massive 9-foot giants in living room with a vaulted ceiling. However, the most common trees in the US are between 5 and 7 feet tall, which includes the trunk length. Thus, the branch-height (which excludes the trunk) is 0.5 to 1.0 feet less than the tree height. Accordingly, the following SAS program varies the branch-height between 4 and 6 feet. The base radius of trees also varies according to species and design, such as slender "pencil trees" that are designed for a hallway or a small apartment. However, many trees have a height-to-base-radius ratio (H/R) that is between 2 and 3. That is, the branch-height of the tree is 2-3 times taller than the base radius. In the previous images, the ratio H/R is 5/2 = 2.5. The following choices of H and R all have a ratio between 2 and 3.
/* SAS DATA step to compute the length of strings of lights for two 
   strategies for winding them onto a conical Christmas tree: 
   helical model and the n-rings model */
data LengthOfLights;
keep H R n L_Helix L_Rings;
label H = "Height of Branches (ft)"
      R = "Radius of Lower Branches (ft)"
      n = "Number of Rings"
      L_Helix = "Length of Helical Model"
      L_Rings = "Length of Rings Model";
format L_Rings 6.1 L_Helix 6.1;
input H R;
 
pi = constant('pi');
n = 2*H;           /* wind the lights twice per vertical foot */
s2 = R**2 + H**2;
s = sqrt(s2);      /* vertical (slant) length of tree (Pythagorean Theorem) */
 
/* 1. formula for arc length of helix */
w = 2*pi*n;
v = R * w;
L_Helix = 0.5*sqrt(s2 + v**2) + (s2/(2*v)) * arsinh(v/s);
 
/* 2. formula for rings with a vertical connection */
sum_Rings = (n+1)*pi*R;
L_Rings = s + sum_Rings; 
datalines;
3.5 1.5
4   1.5
4.5 1.5
5   2
5.5 2
5.5 2.5
6   2.5
6   3
;
 
proc print noobs data=LengthOfLights label; 
run;

For the record, my family's (artificial) tree has H=5 feet and R=2 feet. The table says that the n-Rings method with n=10 requires 74.5 feet of lights. Accordingly, I use 8 boxes of 10-foot strings, which gives me 80 feet of lights. Because this is more length than I need for 10 rings, I let the lights undulate up and down as I wind them.

If you already have boxes of lights at home, you can invert the n-rings formula to solve for n. This tells you how many rings you can form if you have a string of length L. The inverse formula is
\( n = (L - s)/(\pi R) - 1, \,\mbox{where}\, s = \sqrt{R^2 + H^2} \)
For example, I have L=80 feet of lights, so for R=2 and H=5 I could wrap the tree 10.88 times by using equidistant rings.

Summary

This article considers the question, "How many lights do I need to wrap around my Christmas tree." Common online answers use only the height of the tree, not the radius of the base.

A better answer uses the base radius. One online formula is for a mathematical model in which the light strings are wrapped in a helix. The helical formula is very complicated, and for some trees, a helical winding might not be practical.

This article presents a simple mathematical model, which is the n-rings model. This model is appropriate for artificial trees or a natural tree for which the branches look like stack of horizontal disks. You can wrap the lights around the lowest branches, transition to the next level, wrap the lights around the branches at that level, and continue until you reach the top of the tree. For any conical-shaped tree, measure the following:

  • R: The radius of the lowest branches (from the trunk to the outer branches)
  • H: The vertical distance up the trunk from the lowest branch to the top of the tree.
If you want to wind the lights n times around the Christmas tree, you will need a string of lights that is at least \(L = \sqrt{R^2 + H^2} + (n+1) \pi R\) long. This formula works for feet, inches, meters, centimeters, or any other units of length.


Appendix: Derivation of the n-rings formula

We want to find the total sum of circumferences for n circles that are equidistant on a right circular cone of height H and base radius R. The height between adjacent circles is dz = H/n. As shown in the image at the top of this article, if the first circle is at z=0, the radius of the i_th circle is
\( r_i = \frac{R}{H}(H - z_i) \,\mbox{where}\, z_i = (i - 1)H/n \)

Each circle has circumference \(L_i = 2 \pi r_i\), so the total length of the circles is
\( L = 2 \pi \frac{R}{n} \sum_{i=1}^n \left( n - i + 1 \right) \)

There are some convenient formulas that simplify this formula:

  • \(\sum_{i=1}^n 1 = n\)
  • \(\sum_{i=1}^n i = n (n+1)/2\)
  • \(\sum_{i=1}^n n = n \sum_{i=1}^n 1 = n^2\)

By applying these formulas, the summation signs vanish and we are left with the sum of the circumferences of the n circles:
\( L = \pi R (n + 1) \)

This is the length of the n equi-spaced circles. We can add in the sum of the lengths of the slanted segments that connect the circles. The union of those segments is the hypothesis of the right triangle, which, by the Pythagorean theorem, has the length \(\sqrt{R^2 + H^2}\). Consequently, the total length of lights that are wrapped n times arounds a right circular cone of height H and radius R is
\( L_{\mbox{Rings}} = \sqrt{R^2 + H^2} + (n + 1) \pi R \)

Share

About Author

Rick Wicklin

Distinguished Researcher in Computational Statistics

Rick Wicklin, PhD, is a distinguished researcher in computational statistics at SAS and is a principal developer of SAS/IML software. His areas of expertise include computational statistics, simulation, statistical graphics, and modern methods in statistical data analysis. Rick is author of the books Statistical Programming with SAS/IML Software and Simulating Data with SAS.

3 Comments

  1. MichaƂ Mirocha on

    I tried the complicated helical formula and i am getting different lengths, except when H= 1.
    H= 5, R= 2 and n= 10 gave me absurd length of 314.7ft.
    And i can't find, where i make mistake.

    • Rick Wicklin

      Thanks for writing. Yes, you are correct. In my hurry to post the article before Christmas, I forgot to mention that the helical formula I used in the program are not based on the formula that I saw on social media, but based on a similar formula that I derived myself. I have added a paragraph that explicitly provides the formula that I use. Sorry for the confusion.

Leave A Reply