If you want one scale that makes almost anything you play sound musical, the D major pentatonic is a great place to start. It has just five notes, it fits naturally under a huge number of songs in the key of D, and it's very hard to hit a sour note with it. Country players, pop guitarists and classic rock soloists have leaned on this sound for decades. Let's get it under your fingers.
The D major pentatonic scale uses these five notes: D, E, F#, A, B. After B, the pattern starts again on the next D, an octave higher (the same note name, just higher in pitch).
"Pentatonic" simply means five notes. "Major" tells you the overall mood is bright and happy rather than dark or sad. And "D" is the root, the home note the scale is built from and the note your ear treats as "home".
Musicians often describe these notes with numbers, called a formula. It shows how each note relates to the root:
Notice there's no 4 and no 7. That's the secret to this scale, and we'll come back to it.
On guitar, distances between notes are easy to see. A half step is the distance of one fret. A whole step is two frets. The major pentatonic uses this pattern:
W - W - W+H - W - W+H
W+H means a whole step plus a half step, which is three frets. Here's how it plays out from D:
Try it on a single string: put your finger on any D and move up 2, 2, 3, 2, 3 frets. You'll hear the whole scale climb to the next D. It's a brilliant way to understand the shape of the sound before learning box patterns.
You might wonder why we write F# and not Gb, since they're the same fret. It's because this scale comes straight out of the D major scale: D, E, F#, G, A, B, C#. That scale uses each letter name once, and its third note is an F, raised to F#. The pentatonic keeps that spelling. Nothing tricky is going on; it's just the name that matches the family the scale comes from.
Compare the pentatonic to its parent, the D major scale. Two notes are missing: G (the 4th) and C# (the 7th). Those are exactly the notes that sit a half step away from their neighbours: G is right above F#, and C# is right below D.
Half steps create tension, that slightly rubbing, "wants to move" feeling. Remove them and every note sits comfortably next to the others. The result is open, sweet and almost impossible to make sound wrong.
Listen especially for F# and B. The F# gives the scale its bright, major colour. The B, the major 6th, adds that warm, slightly country, sunny flavour. Land on B over a D chord and you'll hear it straight away.
A few chords live entirely inside these five notes:
That B minor connection matters. The B minor pentatonic uses exactly the same notes, D, E, F#, A, B, just with B treated as home. If you already know the minor pentatonic box shape, play it starting from a B and you're playing D major pentatonic notes. What changes is which note you resolve to: rest on D and it sounds major; rest on B and it sounds minor.
For jamming, the scale also works beautifully over the main chords of the D major key. Try this simple loop, four beats each:
D - G - A - D
Then try D - Bm - G - A for a classic pop feel. Record yourself strumming either one (or ask a friend to play it) and improvise over the top. Aim to end your phrases on D when the D chord comes around. That's where your ear will feel most settled.
Knowing where D sits makes every pattern easier to anchor. On a standard-tuned six-string guitar:
The 5th string, 5th fret D is a comfortable starting point. Play D there, then use the 2, 2, 3, 2, 3 fret pattern on that string, or spread the notes across neighbouring strings so your hand doesn't have to travel far. The 10th fret D on the low E string gives you a second home base higher up the neck.
Tip: whatever shape you use, keep track of where the D notes fall. They're your safe landing spots.
Spend five minutes today playing the scale slowly up and down from the D at the 5th fret of the A string, saying each note name out loud. Then put on the D - G - A - D loop and play just three or four notes at a time, finishing on D. Keep it simple and melodic, like you're humming a tune with your fingers. Do that for a few days and you'll be surprised how quickly it starts to sound like real music.
For the bigger picture, read The Major Pentatonic Scale.