A cylinder (from Greek: κύλινδρος, romanized: kulindros, lit. 'roller', 'tumbler' ) has traditionally been a three-dimensional solid, one of the most basic of curvilinear geometric shapes. Geometrically, it has been considered as a prism with a circle as its base.
This traditional view is still used in elementary treatments of geometry, but the advanced mathematical viewpoint has shifted to the infinite curvilinear surface and this is how a cylinder is now defined in various modern branches of geometry and topology.
The shift in the basic meaning (solid versus surface) has created some ambiguity with terminology. It is generally hoped that context makes the meaning clear. Both points of view are typically presented and distinguished by referring to solid cylinders and cylindrical surfaces, but in the literature the unadorned term cylinder could refer to either of these or to an even more specialized object, the right circular cylinder.
The definitions and results in this section are taken from the 1913 text Plane and Solid Geometry by George Wentworth and David Eugene Smith ( Wentworth & Smith 1913).
A cylindrical surface is a surface consisting of all the points on all the lines which are parallel to a given line and which pass through a fixed plane curve in a plane not parallel to the given line. Any line in this family of parallel lines is called an element of the cylindrical surface. From a kinematics point of view, given a plane curve, called the directrix, a cylindrical surface is that surface traced out by a line, called the generatrix, not in the plane of the directrix, moving parallel to itself and always passing through the directrix. Any particular position of the generatrix is an element of the cylindrical surface.
A solid bounded by a cylindrical surface and two parallel planes is called a (solid) cylinder. The line segments determined by an element of the cylindrical surface between the two parallel planes is called an element of the cylinder. All the elements of a cylinder have equal lengths. The region bounded by the cylindrical surface in either of the parallel planes is called a base of the cylinder. The two bases of a cylinder are congruent figures. If the elements of the cylinder are perpendicular to the planes containing the bases, the cylinder is a right cylinder, otherwise it is called an oblique cylinder. If the bases are disks (regions whose boundary is a circle) the cylinder is called a circular cylinder. In some elementary treatments, a cylinder always means a circular cylinder. 
The height (or altitude) of a cylinder is the perpendicular distance between its bases.
The cylinder obtained by rotating a line segment about a fixed line that it is parallel to is a cylinder of revolution. A cylinder of revolution is a right circular cylinder. The height of a cylinder of revolution is the length of the generating line segment. The line that the segment is revolved about is called the axis of the cylinder and it passes through the centers of the two bases.
The bare term cylinder often refers to a solid cylinder with circular ends perpendicular to the axis, that is, a right circular cylinder, as shown in the figure. The cylindrical surface without the ends is called an open cylinder. The formulae for the surface area and the volume of a right circular cylinder have been known from early antiquity.
A right circular cylinder can also be thought of as the solid of revolution generated by rotating a rectangle about one of its sides. These cylinders are used in an integration technique (the "disk method") for obtaining volumes of solids of revolution. 
A cylindric section is the intersection of a cylinder's surface with a plane. They are, in general, curves and are special types of plane sections. The cylindric section by a plane that contains two elements of a cylinder is a parallelogram.  Such a cylindric section of a right cylinder is a rectangle. 
A cylindric section in which the intersecting plane intersects and is perpendicular to all the elements of the cylinder is called a right section.  If a right section of a cylinder is a circle then the cylinder is a circular cylinder. In more generality, if a right section of a cylinder is a conic section (parabola, ellipse, hyperbola) then the solid cylinder is said to be parabolic, elliptic and hyperbolic, respectively.
For a right circular cylinder, there are several ways in which planes can meet a cylinder. First, planes that intersect a base in at most one point. A plane is tangent to the cylinder if it meets the cylinder in a single element. The right sections are circles and all other planes intersect the cylindrical surface in an ellipse.  If a plane intersects a base of the cylinder in exactly two points then the line segment joining these points is part of the cylindric section. If such a plane contains two elements, it has a rectangle as a cylindric section, otherwise the sides of the cylindric section are portions of an ellipse. Finally, if a plane contains more than two points of a base, it contains the entire base and the cylindric section is a circle.
In the case of a right circular cylinder with a cylindric section that is an ellipse, the eccentricity e of the cylindric section and semi-major axis a of the cylindric section depend on the radius of the cylinder r and the angle α between the secant plane and cylinder axis, in the following way:
- V = πr2h.
This formula holds whether or not the cylinder is a right cylinder. 
This formula may be established by using Cavalieri's principle.
In more generality, by the same principle, the volume of any cylinder is the product of the area of a base and the height. For example, an elliptic cylinder with a base having semi-major axis a, semi-minor axis b and height h has a volume V = Ah, where A is the area of the base ellipse (= πab). This result for right elliptic cylinders can also be obtained by integration, where the axis of the cylinder is taken as the positive x-axis and A(x) = A the area of each elliptic cross-section, thus:
Using cylindrical coordinates, the volume of a right circular cylinder can be calculated by integration over
Having radius r and altitude (height) h, the surface area of a right circular cylinder, oriented so that its axis is vertical, consists of three parts:
- the area of the top base: πr2
- the area of the bottom base: πr2
- the area of the side: 2πrh
The area of the top and bottom bases is the same, and is called the base area, B. The area of the side is known as the lateral area, L.
An open cylinder does not include either top or bottom elements, and therefore has surface area (lateral area)
- L = 2πrh.
The surface area of the solid right circular cylinder is made up the sum of all three components: top, bottom and side. Its surface area is therefore,
- A = L + 2B = 2πrh + 2πr2 = 2πr(h + r) = πd(r + h),
where d = 2r is the diameter of the circular top or bottom.
For a given volume, the right circular cylinder with the smallest surface area has h = 2r. Equivalently, for a given surface area, the right circular cylinder with the largest volume has h = 2r, that is, the cylinder fits snugly in a cube of side length = altitude ( = diameter of base circle). 
The lateral area, L, of a circular cylinder, which need not be a right cylinder, is more generally given by:
- L = e × p,
where e is the length of an element and p is the perimeter of a right section of the cylinder.  This produces the previous formula for lateral area when the cylinder is a right circular cylinder.
A right circular hollow cylinder (or cylindrical shell) is a three-dimensional region bounded by two right circular cylinders having the same axis and two parallel annular bases perpendicular to the cylinders' common axis, as in the diagram.
Let the height be h, internal radius r, and external radius R. The volume is given by
Thus, the volume of a cylindrical shell equals 2π(average radius)(altitude)(thickness). 
The surface area, including the top and bottom, is given by
Cylindrical shells are used in a common integration technique for finding volumes of solids of revolution. 
In the treatise by this name, written c. 225 BCE, Archimedes obtained the result of which he was most proud, namely obtaining the formulas for the volume and surface area of a sphere by exploiting the relationship between a sphere and its circumscribed right circular cylinder of the same height and diameter. The sphere has a volume two-thirds that of the circumscribed cylinder and a surface area two-thirds that of the cylinder (including the bases). Since the values for the cylinder were already known, he obtained, for the first time, the corresponding values for the sphere. The volume of a sphere of radius r is 4/3πr3 = 2/3 (2πr3). The surface area of this sphere is 4πr2 = 2/3 (6πr2). A sculpted sphere and cylinder were placed on the tomb of Archimedes at his request.
In some areas of geometry and topology the term cylinder refers to what has been called a cylindrical surface. A cylinder is defined as a surface consisting of all the points on all the lines which are parallel to a given line and which pass through a fixed plane curve in a plane not parallel to the given line.  Such cylinders have, at times, been referred to as generalized cylinders. Through each point of a generalized cylinder there passes a unique line that is contained in the cylinder.  Thus, this definition may be rephrased to say that a cylinder is any ruled surface spanned by a one-parameter family of parallel lines.
A cylinder having a right section that is an ellipse, parabola, or hyperbola is called an elliptic cylinder, parabolic cylinder and hyperbolic cylinder, respectively. These are degenerate quadric surfaces. 
When the principal axes of a quadric are aligned with the reference frame (always possible for a quadric), a general equation of the quadric in three dimensions is given by
with the coefficients being real numbers and not all of A, B and C being 0. If at least one variable does not appear in the equation, then the quadric is degenerate. If one variable is missing, we may assume by an appropriate rotation of axes that the variable z does not appear and the general equation of this type of degenerate quadric can be written as 
If AB > 0 this is the equation of an elliptic cylinder.  Further simplification can be obtained by translation of axes and scalar multiplication. If has the same sign as the coefficients A and B, then the equation of an elliptic cylinder may be rewritten in Cartesian coordinates as:
This equation of an elliptic cylinder is a generalization of the equation of the ordinary, circular cylinder (a = b). Elliptic cylinders are also known as cylindroids, but that name is ambiguous, as it can also refer to the Plücker conoid.
If has a different sign than the coefficients, we obtain the imaginary elliptic cylinders:
which have no real points on them. ( gives a single real point.)
If A and B have different signs and , we obtain the hyperbolic cylinders, whose equations may be rewritten as:
In projective geometry, a cylinder is simply a cone whose apex (vertex) lies on the plane at infinity. If the cone is a quadratic cone, the plane at infinity (which passes through the vertex) can intersect the cone at two real lines, a single real line (actually a coincident pair of lines), or only at the vertex. These cases give rise to the hyperbolic, parabolic or elliptic cylinders respectively. 
This concept is useful when considering degenerate conics, which may include the cylindrical conics.
A solid circular cylinder can be seen as the limiting case of a n-gonal prism where n approaches infinity. The connection is very strong and many older texts treat prisms and cylinders simultaneously. Formulas for surface area and volume are derived from the corresponding formulas for prisms by using inscribed and circumscribed prisms and then letting the number of sides of the prism increase without bound.  One reason for the early emphasis (and sometimes exclusive treatment) on circular cylinders is that a circular base is the only type of geometric figure for which this technique works with the use of only elementary considerations (no appeal to calculus or more advanced mathematics). Terminology about prisms and cylinders is identical. Thus, for example, since a truncated prism is a prism whose bases do not lie in parallel planes, a solid cylinder whose bases do not lie in parallel planes would be called a truncated cylinder.
|Family of uniform n-gonal prisms|
|Prism name||Digonal prism||(Trigonal)
|Pentagonal prism||Hexagonal prism||Heptagonal prism||Octagonal prism||Enneagonal prism||Decagonal prism||Hendecagonal prism||Dodecagonal prism||...||Apeirogonal prism|
|Spherical tiling image||Plane tiling image|
- κύλινδρος Archived 2013-07-30 at the Wayback Machine, Henry George Liddell, Robert Scott, A Greek-English Lexicon, on Perseus
- Jacobs, Harold R. (1974), Geometry, W. H. Freeman and Co., p. 607, ISBN 0-7167-0456-0
- Swokowski 1983, p. 283
- Wentworth & Smith 1913, p. 354
- Wentworth & Smith 1913, p. 357
- "MathWorld: Cylindric section". Archived from the original on 2008-04-23.
- Wentworth & Smith 1913, p. 359
- Lax, Peter D.; Terrell, Maria Shea (2013), Calculus With Applications, Undergraduate Texts in Mathematics, Springer, p. 178, ISBN 9781461479468, archived from the original on 2018-02-06.
- Wentworth & Smith 1913, p. 358
- Swokowski 1983, p. 292
- Swokowski 1983, p. 291
- Albert 2016, p. 43
- Albert 2016, p. 49
- Brannan, David A.; Esplen, Matthew F.; Gray, Jeremy J. (1999), Geometry, Cambridge University Press, p. 34, ISBN 978-0-521-59787-6
- Albert 2016, p. 74
- Albert 2016, p. 75
- Pedoe, Dan (1988) , Geometry a Comprehensive Course, Dover, p. 398, ISBN 0-486-65812-0
- Slaught, H.E.; Lennes, N.J. (1919), Solid Geometry with Problems and Applications (PDF) (Revised ed.), Allyn and Bacon, pp. 79–81, archived (PDF) from the original on 2013-03-06
- Albert, Abraham Adrian (2016) , Solid Analytic Geometry, Dover, ISBN 978-0-486-81026-3
- Swokowski, Earl W. (1983), Calculus with Analytic Geometry (Alternate ed.), Prindle, Weber & Schmidt, ISBN 0-87150-341-7
- Wentworth, George; Smith, David Eugene (1913), Plane and Solid Geometry, Ginn and Co.