A topsail is a sail set above another sail; on square-rigged vessels further sails may be set above topsails.
On a square rigged vessel, a topsail is a square sail rigged above the course sail and below the topgallant sail where carried. A full rigged ship has either single or double ("split" upper and lower) topsails on all masts, the single or lower topsail being the second sail above the deck and the upper topsail where so rigged being the third.
Although described as a "square" sail, this term refers not to a sail's shape but to it and its yard being rigged square to the keel of the vessel rather than in line with it or "fore and aft"; the topsail was and is always trapezoidal, the lengths of the upper yards being progressively smaller the higher they are. The bottom edge (foot) of the topsail, like that of other square sails, is slightly concave.
Although topsails of a kind were used at least as early as Roman times, they first came into use in Europe some time in the 15th century. Initially small and carried only on main and fore masts, they gradually increased in size and importance until by the middle of the 17th century and were the principal and largest sails of the ship, the first sails to be set and the last to be taken in. It was quite common for a ship to sail with topsails and jibs alone; the position of the topsails well above the sea ensured that they received a steady breeze even if the seas were rough.
The larger topsails were difficult and dangerous to handle in strong winds. Sometime in the 1680s, reef-bands were introduced to tie up part of the sail, with topsails eventually getting four of these, and reefing the sails became a regular occupation of sailors. In the mid 19th century, topsails of merchant vessels were split into separate upper and lower topsails that could be managed separately and far more easily by smaller crews.
Competing versions of the double topsail were invented by Robert Bennet Forbes and Captain Frederic Howes. Although Forbes strove to defend his rig, the Howe rig dominated. In the Forbes rig, both topsail yards are fixed vertically. In the Howe rig, the upper topsail yard slides on the topmast so it can be lowered in a few seconds to close reef the upper topsail. Howe had the foot of the upper topsail closely attached to the lower topsail yard. In 1865 the British clipper Ariel introduced a gap there. Forbes first tried his rig in the topsail schooner Midas in 1844.The clipper Climax built in 1853 under the supervision of Howes was the first ship with Howe rig. 
Gaff topsails, like gaff rigs in general, may still be seen at Tall Ships gatherings. The gaff rig has been largely superseded by the Bermuda rig, which has no topsails. On a gaff-rigged sailing boat, topsails may take a few different forms:
A yard topsail is similar, but set on a yard. Early 19th-century topsail yards were set almost horizontally, but gradually increased in angle until they became almost vertical extension of the topmast.
A jack-yard topsail (or club topsail) instead has its lower edge (or foot) extended out beyond the end of the gaff with a short yard, called a "jack-yard". A jack-yard topsail may also have the aforementioned vertical yard, although this makes for a very large topsail.
A cornish topsail is a triangular sail having its luff extended well above the masthead by being laced to a yard hoisted by a halyard rove through a sheave fitted diagonally in the mast. The heel of the yard fits immediately about the gaff and is kept in place by a tackline called a timminoggy.
A square topsail is a square-rigged sail, carried above the foresail only, on gaff schooners. (A brigantine is a two-masted vessel with a forward course.) Schooners carrying square tops are referred to as "topsail schooners"; gaff topsails are taken for granted on gaff-rigged vessels and pass without comment in a vessel description.
A raffee is a square-rigged topsail which is triangular in shape.
On rigs having multiple jibs or staysails of which at least one is set high, such as many late 19th and 20th Century racing cutters, the uppermost of these, set flying or on a topmast stay, is often called the jib topsail.
- Bruzelius, Lars (1996). "Letter from R.B. Forbes to Captain Bradbury, 1855". Letter from R.B. Forbes to Captain Bradbury, 1855. The Maritime History Virtual Archives. Retrieved March 23, 2016.
- Bruzelius, Lars (1996). "A Letter from Geo. H. Bradbury to R.B. Forbes, 1855". A Letter from Geo. H. Bradbury to R.B. Forbes, 1855. The Maritime History Virtual Archives. Retrieved March 23, 2016.
- William L. Crothers (2014). The Masting of American Merchant Sail in the 1850s: An Illustrated Study. Mcfarland & Co Inc Pub. p. 70ff. ISBN 0786493992.
- "Clipper Rigs". Retrieved March 23, 2016.
- William L. Crothers (2013). American-Built Packets and Freighters of the 1850s: An Illustrated Study of Their Characteristics and Construction. Mcfarland & Co Inc Pub. p. 342. ISBN 0786470062.
- Leather, John (2001). The Gaff Rig Handbook (second ed.). Woodenboat Books. p. 54. ISBN 0-937822-67-1.
- Leather, John (2001). The Gaff Rig Handbook (second ed.). Woodenboat Books. p. 56. ISBN 0-937822-67-1.
- Leather, John (2001). The Gaff Rig Handbook (second ed.). Woodenboat Books. p. 58. ISBN 0-937822-67-1.
- Leather, John (2001). The Gaff Rig Handbook (second ed.). Woodenboat Books. p. 59. ISBN 0-937822-67-1.
- Cunliffe, Tom (1992). Hand, Reef and Steer. Sheridan House. p. 21. ISBN 1-57409-203-0.
- Casson, Lionel (1995): "Ships and Seamanship in the Ancient World", Johns Hopkins University Press, ISBN 978-0-8018-5130-8, pp. 240–241
- John Harland & Mark Myers, Seamanship in the Age of Sail; Lees "Masting & Rigging"; "The Young Sea-Officer's Sheet Anchor"