Edinburgh was named the world’s first UNESCO City of Literature in 2004, and it is easy to see why when you start listing the stories that happen here. Walter Scott opened a novel with a riot at the Tolbooth, Muriel Spark set her schoolmistress loose on the 1930s city, Irvine Welsh wrote Leith in its own voice, and Ian Rankin has kept John Rebus busy for close to forty years.
This reading list gathers 30 books set in Edinburgh or about it: classics, crime fiction, historical mysteries, contemporary novels, a children’s favourite and a handful of history books, plus four great reads from elsewhere in Scotland. Each entry says when it was published, which part of the capital it uses and whether it became a film or TV series.
Think you know the Scottish language? Read our lingo guide before you start on the Scots dialogue in Trainspotting.
Updated 19 November 2026. Authors, first publication years, settings and screen adaptations were checked against publisher, author and official sites. Opening hours for the museum and bookshops below come from their own websites; check before you go.
Jump to: At a glance · Classics · Crime · Historical · Modern · Non-fiction · Elsewhere in Scotland · Literary sites · FAQ
Books Set in Edinburgh at a Glance
| Book | Author | First published | Genre | Setting |
|---|---|---|---|---|
| The Heart of Midlothian | Walter Scott | 1818 | Historical | Tolbooth and Grassmarket, 1736 |
| The Private Memoirs and Confessions of a Justified Sinner | James Hogg | 1824 | Gothic | Arthur’s Seat, Salisbury Crags |
| Kidnapped | Robert Louis Stevenson | 1886 | Adventure | Hawes Inn, Queensferry |
| The Prime of Miss Jean Brodie | Muriel Spark | 1961 | Classic | Marcia Blaine School, 1930s |
| Knots and Crosses | Ian Rankin | 1987 | Police procedural (Rebus 1) | Contemporary |
| Fleshmarket Close | Ian Rankin | 2004 | Police procedural (Rebus 15) | Fleshmarket Close |
| Quite Ugly One Morning | Christopher Brookmyre | 1996 | Comic thriller | Contemporary, the NHS |
| One Good Turn | Kate Atkinson | 2006 | Private eye (Jackson Brodie 2) | Festival season |
| The Sunday Philosophy Club | Alexander McCall Smith | 2004 | Amateur sleuth (Isabel Dalhousie 1) | Usher Hall |
| The Other Mrs Walker | Mary Paulson-Ellis | 2016 | Family secrets | A freezing flat |
| A Dark Matter | Doug Johnstone | 2020 | Family investigators (Skelfs 1) | Funeral home |
| Past Lying | Val McDermid | 2023 | Police procedural (Karen Pirie 7) | Cold case |
| The Strings of Murder | Oscar de Muriel | 2015 | Victorian whodunnit | 1888 |
| The Way of All Flesh | Ambrose Parry | 2018 | Historical whodunnit | 1847, medical world |
| The Wages of Sin | Kaite Welsh | 2017 | Historical whodunnit | 1892, medical school |
| The Fair Botanists | Sara Sheridan | 2021 | Historical | Botanic Garden, 1822 |
| Murder Ballad | Lucy Ribchester | 2024 | Historical | 1791, music scene |
| Hazardous Spirits | Anbara Salam | 2023 | Gothic | 1920s séances |
| Rizzio | Denise Mina | 2021 | Novella | Holyrood, 1566 |
| Trainspotting | Irvine Welsh | 1993 | Contemporary | Leith |
| 44 Scotland Street | Alexander McCall Smith | 2005 | Comic serial | Scotland Street |
| One Day | David Nicholls | 2009 | Love story | Graduation, Arthur’s Seat |
| Luckenbooth | Jenni Fagan | 2021 | Literary, supernatural | A tenement from 1910 |
| The Library of the Dead | T. L. Huchu | 2021 | Urban fantasy (Edinburgh Nights 1) | Dystopian future |
| The Ghost Cat | Alex Howard | 2023 | Historical, cat narrator | One flat, 12 decades |
| Maisie Comes to Morningside | Aileen Paterson | 1984 | Picture book | Morningside |
| Edinburgh: Picturesque Notes | Robert Louis Stevenson | 1878 | Essays | Closes, kirkyards, hills |
| Edinburgh: A History of the City | Michael Fry | 2009 | History | Earliest times to today |
| Burke & Hare | Martin Conaghan and Will Pickering | 2009 | Graphic novel | West Port, 1828 |
| Pockets of Pretty | Shawna Law | 2019 | Photography | Neighbourhoods and lanes |
Years are the first publication of the book (Spark’s novel appeared in The New Yorker before the Macmillan edition, both in 1961; 44 Scotland Street ran in The Scotsman from January 2004 before the 2005 book).
Classic Edinburgh Novels
Start here: three nineteenth-century novels and one short twentieth-century one that most people finish in an evening.
The Heart of Midlothian by Walter Scott (1818)

Scott published this as the second series of his Tales of My Landlord in July 1818. The first volume is dominated by the Porteous Riots of 1736, when an Edinburgh mob broke into the Tolbooth prison and lynched Captain John Porteous of the City Guard. The rest follows Jeanie Deans, who walks to London to plead for her sister Effie, sentenced to death for child murder.
The Old Tolbooth was demolished in 1817, a year before the novel came out, and the heart-shaped mosaic in the pavement outside St Giles’ Cathedral marks where its entrance stood. The Writers’ Museum has a display on Scott, and his monument on Princes Street is one of the largest to a writer anywhere.
Buy a copy: UK / US
The Private Memoirs and Confessions of a Justified Sinner by James Hogg (1824)
Hogg published this anonymously in 1824. As the full title promises, an editor’s narrative is followed by the private memoirs of Robert Wringhim, a young man sure of his own salvation and drawn to a mysterious companion. One of its most famous scenes is set on Arthur’s Seat and Salisbury Crags, in strange mist and light. If you like the gothic, this is the place to begin.
Buy a copy: UK
Kidnapped by Robert Louis Stevenson (1886)

Stevenson’s adventure takes place just after the Jacobite risings and is narrated by the teenage David Balfour. His uncle Ebenezer takes him to the Hawes Inn at Queensferry, on the north-western edge of the city, where David is knocked out aboard the brig Covenant, to be sold into slavery on the Carolina plantations. A shipwreck, a friendship with the Jacobite Alan Breck Stewart and a flight across the Highlands follow.
The Hawes Inn still stands by Hawes Pier in South Queensferry; see our South Queensferry guide for a day out there.
Buy a copy: UK / US
The Prime of Miss Jean Brodie by Muriel Spark (1961)

Spark was born in Bruntsfield in 1918 and educated at James Gillespie’s School for Girls. Her best-known novel first appeared in The New Yorker and then as a book from Macmillan in 1961. Miss Brodie teaches at the fictional Marcia Blaine School in the 1930s, where she picks out a small group of girls, “the Brodie set”, and shapes them to her own ideals, with damaging results.
In 2005 TIME magazine included it in its All-TIME 100 Novels, its critics’ choice of 100 English-language works of fiction published since 1923. Maggie Smith won the Academy Award for Best Actress for the 1969 film adaptation.
Buy a copy: UK / US
Edinburgh Crime Fiction
Crime writing is where the city really comes into its own. These are the series openers and stand-alones that use real streets, closes and institutions.
Knots and Crosses by Ian Rankin (1987)
The first Inspector Rebus novel. John Rebus, a former soldier, is working on a series of abductions of young girls while someone sends him anonymous letters containing knotted string and matchstick crosses. The series has run ever since: Midnight and Blue (October 2024) is the 25th Rebus novel. Rankin’s official site has a Rebus reading order.
Buy a copy: UK / US
Fleshmarket Close by Ian Rankin (2004)

The fifteenth Rebus book, in which an illegal immigrant is found murdered in a housing scheme and Rebus, facing retirement, has to visit an asylum seekers’ detention centre. The title is a real close: a steep flight of steps between the High Street and Market Street.
Buy a copy: UK
Quite Ugly One Morning by Christopher Brookmyre (1996)
Brookmyre’s debut introduces the investigative journalist Jack Parlabane, who gets locked out of his flat, climbs into a neighbour’s and walks into a grotesque crime scene. The story is set around the NHS and is as funny as it is dark.
Buy a copy: UK
One Good Turn by Kate Atkinson (2006)
The second Jackson Brodie novel takes place during the summer festival. People queuing for a lunchtime show witness a road-rage attack, and the threads from that one incident pull several strangers, and Brodie, into a murder plot. If you are visiting in August, read it alongside our Fringe guide.
Buy a copy: UK / US
The Sunday Philosophy Club by Alexander McCall Smith (2004)
The first Isabel Dalhousie book. Isabel, a philosopher and amateur sleuth, sees a young man fall from the gallery of the Usher Hall and cannot accept that it was an accident. It is a gentle, thoughtful mystery series rather than a thriller.
Buy a copy: UK
The Other Mrs Walker by Mary Paulson-Ellis (2016)
An old woman dies alone in a freezing flat, and Margaret Penny, newly employed by the Office for Lost People, has to trace her next of kin. The story moves between Margaret’s present and the dead woman’s past.
Buy a copy: UK
A Dark Matter by Doug Johnstone (2020)
The first Skelfs book: three generations of women take over the family funeral home and private investigation business after the patriarch, Jim, dies. Orenda has continued the series since.
Buy a copy: UK
Past Lying by Val McDermid (2023)
The seventh Karen Pirie novel. The cold-case detective finds that the plot of a writer’s manuscript is eerily close to the unsolved disappearance of a university student. The publisher’s description sums up the setting: a city haunted by the ghosts of its many writers.
Buy a copy: UK
Historical Fiction and Victorian Mysteries
From Mary, Queen of Scots to the 1920s séance craze, these books use the capital’s documented past as their setting.
The Strings of Murder by Oscar de Muriel (2015)

Edinburgh, 1888: a virtuoso violinist is killed inside his locked practice room, with black magic symbols on the walls. Inspector Frey investigates alongside Detective McGray in the first Frey & McGray book.
Buy a copy: UK / US
The Way of All Flesh by Ambrose Parry (2018)
Ambrose Parry is the pen name of the married writing team Chris Brookmyre and Marisa Haetzman. In 1847, medical student Will Raven leaves his Old Town lodgings for an apprenticeship with the renowned Dr James Simpson, just as young women are being found dead. It opens the Raven and Fisher series.
Buy a copy: UK
The Wages of Sin by Kaite Welsh (2017)
Sarah Gilchrist flees London for the University of Edinburgh’s medical school in 1892, in the first year it admits women. She is soon drawn into Edinburgh’s underbelly, from body snatchers to bribery.
Buy a copy: UK
The Fair Botanists by Sara Sheridan (2021)

Summer 1822: newly widowed Elizabeth moves into a house beside the new Botanic Garden, where an Agave americana is about to flower for the first time in decades. The novel weaves in the real visit of King George IV that August, which Walter Scott organised. You can visit the Royal Botanic Garden itself in Inverleith.
Buy a copy: UK
Murder Ballad by Lucy Ribchester (2024)
Edinburgh, 1791. Isobel Duguid and her friend, the castrato Clessidro, are stars of the Edinburgh Musical Society, and an old ballad about a murdered lover turns out to be more than a song. Ribchester lives in the city, and the story draws on its eighteenth-century concert life.
Buy a copy: UK
Hazardous Spirits by Anbara Salam (2023)
Evelyn Hazard’s husband tells her he can communicate with the dead, pulling the couple into the spiritualist movement of the early 1920s. It is a gothic literary mystery, published by John Murray, about grief after the First World War.
Buy a copy: UK
Rizzio by Denise Mina (2021)
A novella in Polygon’s Darkland Tales series. It is Saturday evening, 9 March 1566, Mary, Queen of Scots is six months pregnant, and her favourite, David Rizzio, is about to be murdered at Holyrood. Mina retells the real killing as fiction.
Buy a copy: UK
Modern and Contemporary Edinburgh Novels
Since the 1990s, Edinburgh has been written from Leith tenements, Georgian flats and imagined futures alike.
Trainspotting by Irvine Welsh (1993)

Welsh’s first novel, published by Secker & Warburg, is told in loosely linked chapters, much of it in Scots, by Mark Renton and his friends in Leith as they deal with heroin, addiction and each other. Danny Boyle filmed it in 1996 with Ewan McGregor. The story continues in the sequel Porno, the prequel Skagboys and Dead Men’s Trousers (2018); see our guide to films set in Edinburgh.
Buy a copy: UK / US
44 Scotland Street by Alexander McCall Smith (2005)

McCall Smith wrote this as a daily serial in The Scotsman from 26 January 2004. Number 44 is a fictional building on a real New Town street, and its residents include Pat, Bruce and young Bertie, a saxophone-playing prodigy with an overbearing mother. The fourth book, The World According to Bertie (2007), is a good place to dip in if you already know the characters.
Buy a copy: UK / US
One Day by David Nicholls (2009)

Emma and Dexter spend the night of their graduation from the University of Edinburgh together on 15 July 1988, St Swithin’s Day, and the novel revisits them on that date every year for two decades. Its Edinburgh scenes include Arthur’s Seat. Lone Scherfig directed the 2011 film with Anne Hathaway and Jim Sturgess, and Netflix released a 14-episode series in 2024.
Buy a copy: UK / US
Luckenbooth by Jenni Fagan (2021)
No. 10 Luckenbooth Close is an imaginary tenement. In 1910 the devil’s daughter rows to the shore at Leith in a coffin, and the novel follows the building’s residents across nine decades, a famous Beat poet among them.
Buy a copy: UK
The Library of the Dead by T. L. Huchu (2021)
Ropa dropped out of school to work as a ghostalker, carrying messages from the dead to the living in a dystopian Edinburgh. Children are being targeted, and her investigation leads to a hidden occult library. It is the first Edinburgh Nights book, published by Tor.
Buy a copy: UK
The Ghost Cat by Alex Howard (2023)
Grimalkin, born in 1887, haunts the same tenement flat over twelve decades and nine lives, watching its human owners through two world wars, a coronation and the moon landing. Howard, who wrote The Library Cat, published it with Black & White Publishing.
Buy a copy: UK
Maisie Comes to Morningside by Aileen Paterson (1984)
For younger readers, Aileen Paterson’s picture books follow Maisie MacKenzie, the Morningside kitten. This 1984 title is a good gift to bring home for children.
Buy a copy: UK
What About Harry Potter?
J.K. Rowling’s books are set at Hogwarts and in a magical Britain, not in Edinburgh, so they are left out here. The city does have plenty of places that fans visit, from Victoria Street to Greyfriars Kirkyard; see our guide to Harry Potter sites in Edinburgh.
Books About Edinburgh: History and Non-Fiction
If you would rather read about the real city than a fictional one, these are reliable places to start.
Edinburgh: Picturesque Notes by Robert Louis Stevenson (1878)

A short book of essays on the old and new towns, Parliament Close, Greyfriars Kirkyard and the hills around them, published in December 1878 as Stevenson’s second published work. It is free to read on Project Gutenberg.
Buy a copy: UK / US
Edinburgh: A History of the City by Michael Fry (2009)

A single-volume history from the earliest times to the present day, published by Macmillan and running to more than 400 pages. Fry is a historian who lived and worked in the city for nearly forty years before writing it.
Buy a copy: UK / US
Recovering Scotland’s Slavery Past edited by T. M. Devine (2015)

A collection of essays by historians on Scotland’s involvement in Caribbean slavery, published by Edinburgh University Press. It is the scholarly background to the debates about the city’s memorials, such as the Melville Monument to Henry Dundas in St Andrew Square.
Buy a copy: UK
Burke & Hare by Martin Conaghan and Will Pickering (2009)
A research-based graphic novel about the West Port murders. William Burke and William Hare killed at least 16 people in 1827–28 and sold the bodies to Dr Robert Knox’s anatomy school.
Buy a copy: UK
How the Scots Invented the Modern World by Arthur Herman (2001)
Not about the capital alone, but a readable history of the Scottish Enlightenment, much of which happened here. In the UK it is published as The Scottish Enlightenment: The Scots’ Invention of the Modern World.
Buy a copy: UK / US
Pockets of Pretty: An Instagrammer’s Edinburgh by Shawna Law (2019)
A hardback of photographs and short texts on the quieter corners: river walks, mews lanes and closes. Useful for planning a photo walk; pair it with our Edinburgh walks.
Buy a copy: UK
Great Novels Set Elsewhere in Scotland
Want to read beyond the capital? Here are four widely read Scottish classics from other parts of the country.
Outlander by Diana Gabaldon (1991)
In 1945 Claire Randall, a former combat nurse, touches a standing stone in the Highlands and finds herself in 1743. The first book in Gabaldon’s series is set in the Highlands rather than the capital. For the TV series, the Fife village of Falkland was a filming location in the early seasons; see our Fife guide and Outlander tour from Edinburgh, or these Outlander tours on my other website, Two Scots Abroad.
Buy a copy: UK / US
Sunset Song by Lewis Grassic Gibbon (1932)
The first part of the trilogy A Scots Quair. Chris Guthrie grows up on a farm in the fictional Kinraddie in the north east, torn between education and the land, until the First World War changes the community for good.
Buy a copy: UK / US
Lanark by Alasdair Gray (1981)
Published by Canongate, Lanark tells the interwoven stories of Lanark, in the nightmare city of Unthank, and Duncan Thaw, a young artist in Glasgow. Gray was also a painter: his ceiling mural in the Òran Mór auditorium is in Glasgow’s West End. See our Glasgow guide.
Buy a copy: UK / US
The Cone Gatherers by Robin Jenkins (1955)
Two brothers, Neil and Calum, gather pine cones on a Scottish estate during the Second World War, while the gamekeeper Duror grows to hate them. A short, dark book.
Buy a copy: UK / US
Literary Edinburgh: Where Book Lovers Should Go

Once you have read a few of these books, the city gives you places to follow them up. Hours and prices change, so check the official site before you go.
- The Writers’ Museum, Lady Stair’s Close, off the Lawnmarket. Free, open daily 10am–5pm (last entry 4.30pm) according to Culture Edinburgh. It covers Robert Burns, Walter Scott and Robert Louis Stevenson, with first editions and the press on which the Waverley Novels were printed. More in our Writers’ Museum guide.
- Scott Monument, Princes Street Gardens. Climbing is by guided tour; check times and prices on Culture Edinburgh when booking.
- The Edinburgh Literary Pub Tour starts at 7.30pm outside The Beehive Inn, 18-20 Grassmarket, with two actors performing a script about the city’s writers. Dates and prices: confirm when booking.
- The Edinburgh International Book Festival takes place every August. The 2027 dates and programme were not published when we checked; see edbookfest.co.uk.
- Bookshops: Armchair Books, 72-74 West Port (second-hand, daily 10:00–18:30); Topping & Company, 2 Blenheim Place (daily 9am–9pm); Lighthouse, 43-45 West Nicolson Street (Mon–Sat 10am–8pm, Sun 11.30am–5pm); Golden Hare Books, 68 St Stephen Street in Stockbridge (daily 10am–6pm). Hours are from each shop’s own website.
How to Choose What to Read Before Your Trip
- Short on time: The Prime of Miss Jean Brodie and Rizzio are both short enough for a flight.
- Want crime: start a series at book one, so Knots and Crosses, A Dark Matter or The Strings of Murder.
- Walking the Old Town: The Heart of Midlothian, Fleshmarket Close and Burke & Hare all use streets you can stand on today.
- Staying in the New Town: 44 Scotland Street and The Way of All Flesh.
- Travelling with children: Maisie Comes to Morningside for the young ones; The Library of the Dead for teenagers.
Books Set in Edinburgh: FAQ
What is the most famous novel set in Edinburgh?
Two strong answers are The Prime of Miss Jean Brodie (1961) and Trainspotting (1993), both also known through their screen versions. Spark’s novel is on TIME’s 2005 list of the 100 best English-language novels since 1923, and the 1969 film won Maggie Smith an Oscar.
Which crime novels are set in Edinburgh?
Ian Rankin’s Rebus series (from Knots and Crosses, 1987, to Midnight and Blue, 2024), Kate Atkinson’s One Good Turn, Doug Johnstone’s Skelfs books, Val McDermid’s Past Lying, Christopher Brookmyre’s Quite Ugly One Morning and, for Victorian crime, Oscar de Muriel and Ambrose Parry.
Is Harry Potter set in Edinburgh?
No. The stories take place in a magical Britain and at Hogwarts. Fans still visit places in the city linked to the books; see our Harry Potter sites guide.
Is Outlander set in Edinburgh?
The first Outlander novel (1991) takes place mainly in the Highlands around Inverness. Filming for the TV series used other places in central Scotland, including Falkland in Fife.
Why is Edinburgh called a City of Literature?
In 2004 UNESCO named Edinburgh the first City of Literature, the founding member of what is now an international network of literary cities.
What should I read before visiting Edinburgh?
For a mix, take one classic (The Prime of Miss Jean Brodie), one crime novel (Knots and Crosses or One Good Turn) and one history (Michael Fry’s Edinburgh: A History of the City).
Where can I see literary sites in Edinburgh?
The Writers’ Museum in Lady Stair’s Close is free and open daily. The Scott Monument, the Edinburgh Literary Pub Tour from the Grassmarket and the August Edinburgh International Book Festival are the other main stops.

Some book links on this page are Amazon affiliate links; we may earn a small commission at no extra cost to you.
About the author: Amy Hartle is a writer from the United States who has a major love affair with Scotland. She met her husband in a hostel in Edinburgh, attended grad school at the University of Stirling, and still declares Scotland as her favourite country.


Great literary post! Lots of books for me to it on my list.
Cheers Ruth! I especially enjoyed the Trainspotting books.