LGBTQ themes in speculative fiction include lesbian, gay, bisexual, transgender, or queer (LGBTQ) themes in science fiction, fantasy, horror fiction and related genres. Such elements may include an LGBTQ character as the protagonist or a major character, or explorations of sexuality or gender that deviate from the heteronormative.

Science fiction and fantasy have traditionally been aimed at a male readership, and can be more restricted than non-genre literature by their conventions of characterisation and the effect that these conventions have on depictions of sexuality and gender. However, speculative fiction also gives authors and readers the freedom to imagine societies that are different from real-life cultures. This freedom makes speculative fiction a useful means of examining sexual bias, by forcing the reader to reconsider their heteronormative cultural assumptions. It has also been claimed by critics such as Nicola Griffith that LGBTQ readers identify strongly with the mutants, aliens, and other outsider characters found in speculative fiction.

History Before the 1960s, explicit sexuality of any kind was rare in speculative fiction, as the editors who controlled what was published attempted to protect their perceived key market of adolescent male readers. As the readership broadened, it became possible to include characters who were undisguised homosexuals, though these tended to be villains, and lesbians remained almost entirely unrepresented. In the 1960s, science fiction and fantasy began to reflect the changes prompted by the civil rights movement and the emergence of a counterculture. New wave and feminist science fiction authors realised cultures in which homosexuality, bisexuality and a variety of gender models were the norm, and in which sympathetic depictions of alternative sexuality were commonplace.

From the 1980s onwards, homosexuality gained much wider mainstream acceptance and was often incorporated into otherwise conventional speculative fiction stories. Works emerged that went beyond simple representation of homosexuality to explorations of specific issues relevant to the LGBT community. This development was helped by the growing number of openly gay or lesbian authors and their early acceptance by speculative fiction fandom. Specialist gay publishing presses and a number of awards recognising LGBT achievements in the genre emerged, and by the twenty-first century, blatant homophobia was no longer considered acceptable by most readers of speculative fiction.

There was a concurrent increase in representation of homosexuality within non-literary forms of speculative fiction. The inclusion of LGBT themes in comic books, television and film continues to attract media attention and controversy, while the perceived lack of sufficient representation, along with unrealistic depictions, provokes criticism from LGBT sources.

Critical analysis

As genres of popular literature, science fiction (SF) and fantasy often seem more constrained than non-genre literature by their conventions of characterisation and the effects that these conventions have on depictions of sexuality and gender. Science fiction in particular has traditionally been a puritanical genre oriented toward a male readership.Clute & Nicholls, p. 1088 "Sex" Sex is often linked to disgust in SF and horror, and plots based on sexual relationships have mainly been avoided in genre fantasy narratives.Clute & Grant, "Sex" p. 354 On the other hand, science fiction and fantasy can also provide more freedom than realistic literature to imagine alternatives to the default assumptions of heterosexuality and masculinity that permeate many cultures. Homosexuality is now an accepted and common feature of science fiction and fantasy literature, its prevalence due to the influence of lesbian-feminist and gay liberation movements.Garber & Paleo, p. x "Preface"

In speculative fiction, extrapolation allows writers to focus not on the way things are (or were), as non-genre literature does, but on the way things could be different. It provides science fiction with a quality that science fiction critic Darko Suvin has called "cognitive estrangement": the recognition that what we are reading is not the world as we know it, but a world whose differences force us to reconsider our own with an outsider's perspective. When the extrapolation involves sexuality or gender, it can force the reader to reconsider their heteronormative cultural assumptions; the freedom to imagine societies different from real-life cultures makes SF an effective tool for examining sexual bias. In science fiction, such estranging features include technologies that significantly alter sex or reproduction. In fantasy, such features include figures such as mythological deities and heroic archetypes, who are not limited by preconceptions of human sexuality and gender, allowing them to be reinterpreted.Marchesani, pp.1–6 SF has also depicted a plethora of alien methods of reproduction and sex, some of which can be viewed as homo- or bisexual through a human binary-gender lens.

In spite of the freedom offered by the genres, gay characters often remain contrived and stereotypical,Garber & Lyn Paleo, p. xix "Introduction" by Samuel R. DelanyGarber & Lyn Paleo, p. xi "Preface" and most SF stories take for granted the continuation of heteronormative institutions. Alternative sexualities have usually been approached allegorically, or by including LGBT characters in such a way as to not contradict mainstream society's assumptions about gender roles. Works that feature gay characters are more likely to be written by women writers, and to be viewed as being aimed at other women or girls; big-name male writers are less likely to explore gay themes.Bacon-Smith, p.137

Speculative fiction has traditionally been "straight"; Samuel R. Delany has written that the science fiction community is predominantly made up of white male heterosexuals, but that the proportion of minorities, including gay people, is generally higher than found in a "literary" group.Samuel R. Delany, Shorter Views, p.286 The inclusion of homosexuality in SF has been described in Science Fiction Culture as "sometimes lagging behind the general population, sometimes surging ahead".Bacon-Smith, p.135 Nicola Griffith has written that LGBT readers tend to identify strongly with the outsider status of mutants, aliens, and characters who lead hidden or double lives in science fiction. In comparison, Geoff Ryman has claimed that the gay and SF genre markets are incompatible, with his books being marketed as one or the other, but never both, and David Seed said that SF purists have denied that SF that focuses on soft science fiction themes and marginalised groups (including "gay SF") is "real" science fiction. Gay and lesbian science fiction have at times been grouped as distinct subgenres of SF, and have some tradition of separate publishers and awards.

Literature Early speculative fiction

A True History by the Greek writer Lucian (A.D. 120–185) is noted for both its fantastical setting and its depiction of sexuality, being termed by some as the earliest surviving example of science fictionGunn, James E. denotes True History as "Proto-Science Fiction", p.249 or the first ever "gay science fiction story". The narrator is suddenly enveloped by a typhoon and swept up to the moon, which is inhabited by a society of men that are at war with the sun. After the hero distinguishes himself in combat, the king gives him his son the prince in marriage. The all-male society reproduces (male children only) by giving birth from the thigh or by growing a child from a plant produced by planting the left testicle in the moon's soil.Dynes, Johansson, Percy & Donaldson, Pg. 752, "Science Fiction"

In other fantastical works, sex itself, of any type, was equated with base desires or "beastliness", as in Gulliver's Travels, which contrasts the animalistic and overtly sexual Yahoos with the reserved and intelligent Houyhnhnms. The frank treatment of sexual topics of pre-nineteenth century literature was abandoned in most speculative fiction, although Wendy Pearson has written that issues of gender and sexuality have been central to SF since its inception but were ignored by readers and critics until the late twentieth century.Pearson, Hollinger & Gordon, Queer Universes: Sexualities in Science Fiction, Liverpool UP, 2008, p. 2 Early works that contained LGBT themes and showed the gay characters to be morally impure include the first lesbian vampire story Carmilla (1872) by Sheridan Le FanuGarber & Paleo, "Carmilla" p. 76 and The Picture of Dorian Gray (1890) by Oscar Wilde, which shocked contemporary readers with its sensuality and overtly homosexual characters.Garber & Paleo, "The Picture of Dorian Gray" p. 148

An Anglo-American Alliance, a 1906 novel by Gregory Casparian, was the first speculative novel to openly portray a lesbian romantic relationship.

Pulp era (1920–30s) During the pulp era, explicit sexuality of any kind was rare in genre science fiction and fantasy. For many years, the editors who controlled what was published felt that they had to protect the adolescent male readership that they identified as their principal market. Although the covers of some 1930s pulp magazines showed scantily clad women menaced by tentacled aliens, the covers were often more lurid than the magazines' contents. In such a context, writers like Edgar Pangborn, who featured passionate male friendships in his work, were exceptional; almost until the end of their careers, including so much as a kiss would have been too much. Implied or disguised sexuality was as important as that which was openly revealed. As such, genre SF reflected the social mores of the day, paralleling common prejudices; this was particularly true of pulp fiction, more so than literary works of the time.

As the demographics of the readership broadened, it became possible to include characters who were more or less undisguised homosexuals, but these, in accordance with the attitudes of the times, tended to be villains: evil, demented, or effeminate stereotypes. The most popular role for the homosexual was as a 'decadent slaveholding lordling' whose corrupt tyranny was doomed to be overthrown by the young male heterosexual hero. During this period, lesbians were almost entirely unrepresented as either heroes or villains.

One of the earliest examples of genre science fiction that involves a challenging amount of unconventional sexual activity is the early novel Odd John (1935), by Olaf Stapledon. John is a mutant with extraordinary mental abilities who will not allow himself to be bound by many of the rules imposed by the ordinary British society of his time. The novel strongly implies that he seduces an older boy who becomes devoted to him but also suffers from the affront that the relationship creates to his own morals.Garber & Paleo, "Odd John" p. 127

Golden Age (1940–50s) In the Golden Age of Science Fiction, the genre "resolutely ignored the whole subject" of homosexuality, according to Joanna Russ.Joanna Russ, Introduction to Uranian Worlds: A Guide to Alternative Sexuality in Science Fiction, Fantasy, and Horror, p xxii, Ed. Eric Garber, Lyn Paleo G K Hall: 1983 As the readership for science fiction and fantasy began to age in the 1950s, however, writers like Philip José Farmer and Theodore Sturgeon were able to introduce more explicit sexuality into their work. Until the late 1960s, however, few other writers depicted alternative sexuality or revised gender roles, or openly investigated sexual questions. The majority of LGBT characters were depicted as caricatures, such as "man-hating amazons", and attempts at portraying homosexuals sympathetically or non-stereotypically were met with hostility.