Yes, its quite possible and can actually be very fun. The ideal situation is for a small group of people to play with a story teller (DM) and players, but you can play D&D alone, with just a buddy or a few people without a DM or with a full group. There are even modules and apps that are dedicated to this pursuit.
Can you play Dungeons and Dragons solo?
Dungeons & Dragons 5E can be played solo with a number of fan-made rulesets - including one that puts you in the shoes of vampire lord Strahd!
Can you be a DM and a player?
No, a Dungeon Master cannot be a player. Any character the Dungeon Master plays while DMing is called an NPC (non-player character). NPCs are handled differently in the game and do not gain XP, level up or share rewards like PCs do. You can, however, make your NPC a party member or just let them tag along.
Can you play D and D with 2 players?
In addition to a bunch of handy pack-ins and a meaty campaign that takes new players up through sixth level, it also includes rules for two-player games. Now all you need to play D&D is a Dungeon Master, a single player character, and a trusty sidekick.
How long should a D&D session last?
How long does Dungeons & Dragons take to play? A single session of Dungeons & Dragons can last anywhere between three hours to an entire day, as its almost implausible to get a reasonable amount of roleplaying done in less than a few hours.