How Many Psalms Did David Write?

Many people assume that King David wrote all the psalms in the Bible. Because his name appears so frequently in the Book of Psalms, it’s easy to think that the entire collection came from him.

However, the truth is a bit more detailed.

While David is the largest contributor to the Book of Psalms, he did not write every psalm. Scripture attributes 73 psalms to David in the titles within the Book of Psalms, and the New Testament identifies two additional psalms as spoken through David. This brings the total to 75 psalms attributed to David in the Bible.

Note: While David is the largest contributor to the Book of Psalms, other writers—some of whom contributed only a single psalm, like Ethan—also played a role in the Psalter. Learn more in this article, How Many Psalms Did Ethan Write?.

Understanding which psalms David wrote helps us better appreciate his role in the Psalter and how his life experiences shaped many of these prayers and songs.

David’s Role in Writing Psalms

To understand David’s role in the Psalms, it helps to look at how we know which psalms are attributed to him, how some of them connect to events in his life, and what they teach us about trusting and following God.

Psalms the New Testament Attributes to David

Psalms attributed to David in the New Testament

Let’s start off by looking at the two Psalms that the New Testament attributes to David.

These references appear when New Testament writers quote the Psalms and identify David as the speaker.

In Acts 4:25, the early believers quote Psalm 2 while praying to God:

“who by the mouth of Your servant David have said:
‘Why did the nations rage,
And the people plot vain things?’
” (NKJV)

This passage clearly identifies David as the human author behind Psalm 2.

The book of Hebrews does something similar with Psalm 95. In Hebrews 4:7, the author refers to the psalm and attributes the words to David:

“again He designates a certain day, saying in David, ‘Today,’ after such a long time, as it has been said:

‘Today, if you will hear His voice,
Do not harden your hearts.’
” (NKJV)

Taken together, the Scripture attributes 75 psalms to David – 73 in the Psalms themselves, and two more in the New Testament.

A Complete List of Psalms Attributed to David

The psalms written by David cover a wide range of themes, including among other things, wisdom, lament, praise, repentance, and trust in God. While scholars sometimes categorize psalms in different ways, the groupings below highlight the primary theme of each psalm so you can more easily see the variety in the psalms David wrote. However, on occasion I put the same psalm into more than one list since they fit in each one.

Psalms Attributed to David in the New Testament

As mentioned previously, the New Testament attributes two Psalms to David.

PsalmNotes
Psalm 2Attributed to David in Acts 4:25
Psalm 95Attributed to David in Hebrews 4:7

Wisdom Psalms Written by David

Wisdom psalms written by David

Wisdom psalms focus on living faithfully before God and often contrast the path of the righteous with the path of the wicked. These psalms emphasize the blessings of obedience and the consequences of rejecting God’s ways.

PsalmNotes
Psalm 1Contrast between the righteous and the wicked. It’s important to know that there isn’t an official recognition of David as the author of Psalm 1, but it’s a common belief.
Psalm 37Wisdom reflections on the fate of the righteous and wicked

Lament Psalms Written by David

Lament psalms written by King David

Lament psalms are prayers offered in times of distress, danger, or deep sorrow. In these psalms, David cries out to God for help, justice, deliverance from enemies, or relief from suffering.

What makes David’s lament psalms especially powerful is their honesty. David does not hide his fears or struggles. Instead, he brings them directly to God in prayer, often moving from complaint to trust and hope by the end of the psalm.

PsalmNotes
Psalm 3Written when David fled from Absalom
Psalm 6Prayer for mercy during suffering
Psalm 7Plea for justice
Psalm 13Cry for help in prolonged distress
Psalm 22Lament that later becomes messianic
Psalm 25Prayer for guidance and forgiveness
Psalm 26Appeal for vindication
Psalm 28Prayer for help against enemies
Psalm 31Trust in God during persecution
Psalm 35Prayer for deliverance from enemies
Psalm 38Lament during suffering and guilt
Psalm 39Reflection on human frailty
Psalm 40Prayer for help and praise
Psalm 41Cry for mercy during illness
Psalm 54Prayer when betrayed by the Ziphites
Psalm 55Distress over betrayal by a friend
Psalm 56Prayer while captured by the Philistines
Psalm 57Prayer while hiding in a cave
Psalm 59Prayer for protection from Saul
Psalm 60Lament after military defeat
Psalm 61Cry for refuge
Psalm 64Prayer for protection from conspirators
Psalm 69Deep lament and plea for deliverance
Psalm 70Urgent plea for help
Psalm 86Prayer for mercy and protection
Psalm 109Imprecatory lament against enemies
Psalm 140Prayer for deliverance from violent men
Psalm 141Prayer for protection from temptation
Psalm 142Prayer from a cave during distress
Psalm 143Plea for mercy and guidance

Penitential Psalms Written by David

Penitential psalms written by David

Penitential psalms express deep sorrow for sin and a desire for God’s forgiveness. In these psalms, David openly confesses his wrongdoing and pleads for mercy.

What makes these psalms especially powerful is David’s honesty before God. Rather than hiding his failures, he brings them directly to the Lord, trusting in God’s grace and compassion. These psalms remind us that repentance is an important part of a faithful relationship with God.

PsalmNotes
Psalm 6Plea for mercy during suffering
Psalm 32Joy and relief after receiving forgiveness
Psalm 38Confession of sin and plea for mercy
Psalm 51Repentance after David’s sin with Bathsheba
Psalm 143Prayer for mercy and guidance

Psalms of Trust Written by David

Trust psalms that David wrote

Psalms of trust express confidence in God’s protection, care, and faithfulness, even in the midst of danger or uncertainty. In these psalms, David acknowledges real threats and struggles, but he ultimately places his confidence in the Lord in spite of his circumstances.

These psalms remind us that trusting God does not mean life is easy. Instead, they show how faith allows us to rest in God’s presence and promises, even during difficult seasons.

PsalmNotes
Psalm 4Evening prayer expressing trust in God
Psalm 11Confidence in God’s justice and protection
Psalm 16Trust in God as refuge and portion
Psalm 23The Lord as shepherd and provider
Psalm 27Confidence in the Lord’s protection
Psalm 62Trust in God alone for salvation and security
Psalm 63Trust and longing for God in the wilderness

Thanksgiving Psalms Written by David

Thanksgiving psalms that David wrote

Thanksgiving psalms focus on gratitude for God’s deliverance, provision, and faithfulness. In these psalms, David reflects on how God has answered prayer, rescued him from danger, or shown mercy during difficult times.

Unlike lament psalms, which cry out for help, thanksgiving psalms look back on what God has already done and respond with gratitude and praise.

PsalmNotes
Psalm 18Thanksgiving for deliverance from enemies
Psalm 21Gratitude for victory and God’s blessings on the king
Psalm 30Thanksgiving for healing and restoration
Psalm 34Gratitude after David escaped from Achish
Psalm 40Thanksgiving for God’s deliverance

Praise Psalms Written by David

Praise Psalms that David wrote

Praise psalms focus on celebrating who God is and what He has done. Rather than focusing on personal distress or specific requests, these psalms lift attention upward to God’s greatness, power, wisdom, and faithfulness.

In David’s praise psalms, we often see him reflecting on God’s glory in creation, His righteous rule over the earth, and His steadfast love toward His people. These psalms invite us to join David in worshiping God simply because He is worthy of praise.

Free Psalm Study and Prayer Guide

Use this simple three-page guide to help you understand, apply, and pray any Psalm.

Stop and think about that for a minute! We praise God simply because He is worthy of praise! If you want to incorporate praise into your daily time with the Lord, and aren’t quite sure how, reading the Psalms of praise listed below out loud or journaling about them is a great way to make praise a regular part of your walk with the Lord.

PsalmNotes
Psalm 8Praise for God’s majesty revealed in creation
Psalm 9Praise for God’s justice and righteous rule
Psalm 19God’s glory revealed in creation and His Word
Psalm 29Praise for the power of God’s voice
Psalm 65Praise for God’s provision in creation
Psalm 68Celebration of God’s victories and power
Psalm 103Praise for God’s mercy and compassion
Go here for a verse by verse study of Psalm 103.
Psalm 138Thanksgiving and praise for God’s faithfulness
Psalm 139Praise for God’s perfect knowledge and presence
Psalm 145A hymn of praise to God the King

Royal / Messianic Psalms Written by David

Royal and Messianic psalms that David wrote

Royal psalms focus on God’s rule and His chosen king. In David’s time, these psalms often celebrated the role of the king in leading God’s people and trusting in the Lord for victory and justice.

Some of these psalms are also considered messianic, meaning they ultimately point forward to the coming Messiah. The New Testament frequently quotes these passages to show how Jesus Christ fulfilled them.

PsalmNotes
Psalm 2See Acts 4:25
Psalm 8See Hebrews 2:6-9
Psalm 16See Psalm 16:10
Psalm 20Prayer for victory for the king (a royal psalm)
Psalm 21Thanksgiving for the king’s victories (royal psalm)
Psalm 22Widely considered to be one of the clearest Messianic psalms
Psalm 40Considered to be a “partially Messianic” psalm. See verse 6-8
Psalm 69Describes the righteous suffering of God’s servant in ways that closely parallel Jesus’ experience. Several of its verses are explicitly quoted in the New Testament and applied to Christ.
Psalm 101Commitment of a king to rule with righteousness (a royal psalm)
Psalm 110One of the most quoted messianic psalms in the New Testament – portrays a divinely appointed king who reigns with God’s authority and serves as an eternal priest

Psalms Connected to Events in David’s Life

Psalms based on David's life experiences

One of the most fascinating aspects of David’s psalms is that many of them are tied to specific events in his life. The titles of several psalms provide historical context, showing that these prayers were written during moments of danger, failure, repentance, or deliverance.

These connections help us see that the Psalms are not abstract poetry or a figment of David’s imagination. They are real prayers written during real moments in David’s life.

Below are a few examples that illustrate how David’s life experiences shaped the psalms he wrote.

Psalm 3 — When David Fled from Absalom

David wrote Psalm 3 during one of the most painful moments of his life, during his son Absalom’s rebellion.

Absalom led a revolt against David and forced him to flee Jerusalem (2 Samuel 15–18). Surrounded by enemies and unsure of what would happen next, David turned to God for protection.

In the midst of this crisis, David prayed:

“But You, O Lord, are a shield for me,
My glory and the One who lifts up my head.”
(Psalm 3:3, NKJV)

Psalm 34 — After David Escaped from Achish

Psalm 34 is connected to an unusual moment in David’s life when he fled from King Saul and sought refuge among the Philistines.

When David appeared before Achish king of Gath, he pretended to be insane in order to escape danger (1 Samuel 21:10–15). After God delivered him from that situation, David wrote Psalm 34 as a song of gratitude.

The psalm begins with a powerful declaration of praise:

“I will bless the Lord at all times;
His praise shall continually be in my mouth.”
(Psalm 34:1, NKJV)

Psalm 51 — After David’s Sin with Bathsheba

Psalm 51 is one of the most well-known prayers of repentance in the Bible.

After David committed adultery with Bathsheba and arranged the death of her husband Uriah, the prophet Nathan confronted him about his sin (2 Samuel 12). In response, David turned to God in repentance.

In Psalm 51, he prayed:

“Have mercy upon me, O God,
According to Your lovingkindness;
According to the multitude of Your tender mercies,
Blot out my transgressions.”
(Psalm 51:1, NKJV)

This psalm shows that true repentance involves honest confession, humility before God, and a desire for a changed heart.

Psalm 18 — After Deliverance from Saul

Psalm 18 celebrates God’s deliverance after years of conflict with King Saul and other enemies.

David fled from Saul for many years, living as a fugitive, even though he was already anointed king. When God finally delivered him from his enemies, David responded with a powerful psalm of thanksgiving.

He begins by declaring:

“I will love You, O Lord, my strength.
The Lord is my rock and my fortress and my deliverer.”
(Psalm 18:1–2, NKJV)

Psalm 57 — While Hiding in a Cave

David wrote Psalm 57 when he was hiding from Saul in a cave (1 Samuel 24).

Even while living as a fugitive, David expressed confidence that God would protect him.

In the middle of this dangerous situation, David prayed:

“Be merciful to me, O God, be merciful to me!
For my soul trusts in You;
And in the shadow of Your wings I will make my refuge.”
(Psalm 57:1, NKJV)

Primary Themes in the Psalms of David

Primary themes in David's psalms.

The psalms written by David cover many different situations in life, but several major themes appear again and again throughout his writings. These themes reveal how David related to God during moments of joy, failure, danger, and worship.

As you read David’s psalms, you begin to see a pattern: David continually turns to God in every circumstance of life. His psalms show us what it looks like to trust God, seek forgiveness, and praise Him in both good times and difficult seasons.

Below are a few of the most important themes found in the psalms written by David.

Trusting God in Times of Trouble

David wrote many of his psalms during times of danger, persecution, or personal distress. Yet even in these situations, David repeatedly expressed confidence that God would protect and sustain him.

For example, David writes in Psalm 23:

“The Lord is my shepherd;
I shall not want.”
(Psalm 23:1, NKJV)

David’s psalms remind us that trusting God does not mean life will be free from trouble. Instead, they show how faith allows us to rest in God’s care even when circumstances are difficult.

Repentance and God’s Mercy

Another major theme in David’s psalms is repentance. David did not pretend to be perfect. When he sinned, he openly confessed his wrongdoing and sought God’s mercy.

One of the clearest examples appears in Psalm 51, which we looked at earlier in connection with David’s repentance after his sin with Bathsheba. In that psalm David prayed:

“Create in me a clean heart, O God,
And renew a steadfast spirit within me.”
(Psalm 51:10, NKJV)

This psalm shows that a faithful relationship with God includes honest confession, humility before God, and a desire for a changed heart.

Praise and Worship

David’s psalms also overflow with praise for God’s greatness and goodness. Many of his psalms celebrate God’s power in creation, His faithfulness to His people, and His mercy toward those who seek Him.

Psalm 103 captures this spirit of praise:

“Bless the Lord, O my soul;
And all that is within me, bless His holy name!”
(Psalm 103:1, NKJV)

Through these psalms, David invites us to join him in worshiping God for who He is and for all that He has done.

God as Refuge and King

Throughout his life, David repeatedly described God as his refuge, fortress, and king. Whether he was fleeing from enemies or celebrating victory, David saw God as the ultimate source of protection and authority.

In Psalm 18, David writes:

“The Lord is my rock and my fortress and my deliverer;
My God, my strength, in whom I will trust.”
(Psalm 18:2, NKJV)

This theme reminds us that true security is not found in human strength or circumstances, but in God’s power and faithfulness.

Frequently Asked Questions

No. Although David wrote many psalms, he did not write all of them.

The Bible attributes 73 psalms to David in the titles within the Book of Psalms, and the New Testament attributes two additional psalms (Psalm 2 and Psalm 95) to him. This means 75 psalms are attributed to David in Scripture, making him the largest contributor to the Book of Psalms.

However, other authors also wrote psalms. See Who Wrote the Book of Psalms for more information.

Most of the psalms written by David are identified by titles that appear at the beginning of the psalm. Many of these headings say something like:

“A Psalm of David.”

These titles are part of the Hebrew text and have traditionally been understood to indicate authorship.

In addition, the New Testament attributes Psalm 2 and Psalm 95 to David, confirming his authorship of those psalms as well.

The most famous psalm written by David is Psalm 23.

This psalm describes the Lord as a shepherd who guides, protects, and provides for His people. It begins with the well-known words:

“The Lord is my shepherd;
I shall not want.”
(Psalm 23:1, NKJV)

Psalm 23 has brought comfort to countless believers and remains one of the most widely quoted passages in the Bible.

David’s psalms are also valuable because they show how a person can relate to God in every situation in life.

Through David’s psalms we see examples of:

  • prayer during suffering
  • repentance after sin
  • gratitude for God’s blessings
  • joyful praise and worship

Because David wrote honestly about his struggles and faith, his psalms continue to help believers learn how to pray, trust God, and worship Him today.

Conclusion

King David played a remarkable role in the Book of Psalms. While he did not write every psalm, Scripture attributes 75 psalms to him, making him the largest contributor to the Psalter.

David’s psalms reflect the full range of human experience. In them we see prayers during times of danger, songs of praise after victory, cries for mercy after sin, and expressions of deep trust in God.

Because these psalms are part of God’s Word, they continue to guide believers today. They show us how to bring our fears, failures, gratitude, and worship before the Lord with honesty and faith.

As you read the psalms written by David, you are not only studying ancient poetry—you are learning how to seek God in every season of life. I encourage you to pick up your Bible, and dive into Psalms today!

Continue the Conversation 

I’d love to hear how God used this blog post in your life. 

If you’re on my email list, simply reply to one of my emails and share what stood out to you. I read every reply, and hearing how God is at work in the lives of readers is always an encouragement to me. 

If you’re not yet subscribed, you can join below.