Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
25 Million+
Websites using our plugins
Years of WordPress experience
WordPress tutorials
by experts

How to Get Word Count Stats in WordPress (3 Ways)

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to get word count stats in WordPress?

When writing a post, you may have a specific word count that you’re aiming to reach. Plus, monitoring your word count stats can give you insights like what post length gets the most traffic and engagement.

In this article, we will show you how you can show detailed word count stats in WordPress.

How to get word count stats in WordPress

Why Get Word Count Stats for Your WordPress Website?

There are many reasons why you may want to get the word count for your WordPress website.

If you’re a freelance writer, then you may charge per word or your clients might have strict word count goals that you need to meet.

If you’ve added multiple authors to your WordPress blog, then monitoring their word count stats can help you identify the authors who are contributing the most to your website.

This insight can help you manage your multi-author WordPress blog more efficiently. For example, you might reward the author who has the highest word count, or schedule meetings with any writers who are underperforming.

Even if you’re the only person working on a website, word count stats can still be interesting. By looking at how your word count changes over time, you may be able to spot patterns and ways to be more productive.

With all that in mind, let’s look at a few different ways to get word count stats in WordPress. If you prefer to jump straight to a particular method, then you can use the links below.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

Method 1. How to Check the Word Count on an Article in WordPress

The WordPress block editor makes it easy to see the word count for any page or post.

Simply click on the ‘i’ icon at the top of the screen, and WordPress will show some basic stats for the page or post, including the word count.

Getting the word count in the WordPress block editor

Even better, this word count will update automatically as you write.

If you have a word limit, then this is a quick and easy way to make sure you don’t go over that limit.

Method 2. Get Detailed Word Count Stats in WordPress With a Plugin

Sometimes you may want to see word count stats for a particular author, type of post, or even your entire website.

The easiest way to get these detailed stats is by using the WP Word Count plugin. This plugin shows how many words you’ve written based on month, author, and post type.

If you’re using custom post types, then WP Word Count can also show statistics for your custom posts.

First, you’ll need to install and activate the plugin. If you need help, then please see our guide on how to install a WordPress plugin.

Once you’ve done that, go to Word Count » Statistics. Before you can get your stats, you’ll need to click on the ‘calculate’ link.

Calculating the word count for your WordPress website

WP Word Count will ask whether you want to count the words for all your content, or to only count content that was created within a certain date range.

To calculate the total word count for your entire site, click on the ‘Count all content on this site at one time’ option. Then, go ahead and click on Calculate Word Counts.

Getting word count stats in WordPress

After a few moments, you should see a ‘Word counts calculated successfully’ message.

WP Word Count will now continue to calculate your stats automatically as you add more posts and pages to your site. This means you won’t need to click on the ‘calculate’ link every time you want to see the latest word count stats.

Now, anytime you want to see your stats, you can go to Word Count » Statistics. To see the total word count for all your content, click on the All Content tab.

On this screen, you’ll see the total word count for the different post types, divided into published and unpublished content.

Word count statistics in the WordPress dashboard

‘Total Words’ is your total word count across all content types.

This number combines both your published and unpublished content, so it isn’t necessarily the amount of words that visitors will see live on your website.

The WP Word Count plugin

This screen also shows separate word counts for published and unpublished content.

If you want to see the word count for specific months, then simply click on the ‘Monthly Statistics’ tab. This can help you spot trends including your most productive months, and times when you wrote fewer words compared to other months.

Monthly word count stats in WordPress

If multiple people write for your WordPress blog, then you may want to take a look at the ‘Author Statistics’ tab.

This lets you explore your site’s word count stats by author.

Author word count statistics in WordPress

You might also want to track the traffic that each of your authors brings to your website. To do that, you can see our guide on how to set up author tracking in WordPress.

By monitoring these important metrics on your WordPress site, you can identify what’s working on your website and what isn’t.

You can then use this insight to fine-tune your content calendar to get even more visitors to your website, and make money online blogging with WordPress.

Method 3. How to Add Word Count Stats in WordPress Using Code

Another option for tracking word counts is a code solution. This code snippet will show the word count next to each post on the Posts » All Posts screen.

Adding a word count to the WordPress dashboard

This is an easy way to spot your site’s longest posts, or check for any posts that don’t meet a required word count.

To show a word count on the All Posts screen, you’ll need to add some code to your site. We recommend doing this by creating a site-specific plugin or using a code snippets plugin.

No matter what option you choose, you’ll need to add the following code:

add_filter('manage_posts_columns', 'wpbeginner_add_column');
function wpbeginner_add_column($wpbeginner_wordcount_column) {
    $wpbeginner_wordcount_column['wpbeginner_wordcount'] = 'Word Count';
    return $wpbeginner_wordcount_column;
//Link the word count to our new column//
add_action('manage_posts_custom_column',  'wpbeginner_display_wordcount'); 
function wpbeginner_display_wordcount($name) 
   global $post;
   switch ($name)
     case 'wpbeginner_wordcount':
		//Get the post ID and pass it into the get_wordcount function//
            $wpbeginner_wordcount = wpbeginner_get_wordcount($post->ID);
            echo $wpbeginner_wordcount;

function wpbeginner_get_wordcount($post_id) {
     //Get the post, remove any unnecessary tags and then perform the word count// 
     $wpbeginner_wordcount = str_word_count( strip_tags( strip_shortcodes(get_post_field( 'post_content', $post_id )) ) );
      return $wpbeginner_wordcount;

You can then save your changes.

Now, if you visit the Posts » All Posts screen, you’ll see the word count in a new column.

We hope this guide helped you learn how to get word count stats in WordPress. You may also want to learn how to set up Google Analytics goals for your WordPress site, or check out our list of the best email marketing services for small businesses.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

24 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk says

    Thank you for the guide, I’ll try using the snippet because I don’t want to unnecessarily go the route of an external plugin and burden WordPress. Since I sometimes post short updates on the website, I still try to maintain a minimum article length of 300 words. Until now, I used to write articles in LibreOffice first to see the word count. Now I won’t have to :)

  3. WPBeginner Support says

    You would want to try checking under the document overview section in the outline tab.


    • WPBeginner Support says

      You would want to check the top-right under the … and check your preferences. If ‘Reduce the interface’ is enabled then that is the most likely reason why you don’t see it.


  4. Shardha says

    How can we count total number of another competitor’s website?? Suppose a website has 30 articles, how can we count total number of words in those 30 articles, since it is other’s website?

    • WPBeginner Support says

      You would want to reach out to the plugin’s support to see if it is an error with the plugin itself.


  5. Ricard says

    Thanks for the post! Great info! But as always I’d like to know more and more :D. Is there any method to know how many words have all the comments (approved) in a post, or in all posts of some category… or even all the posts in your website.

  6. Haley Hines says

    I’ve integrated user profiles into the sidebar of my site. I’d like to pull how many words that specific user has written into the profile. Is there an easy way to do this since I have this plugin installed?

  7. Christian Karasiewicz says

    Now if only this would integrate with Google Analytics to show authors how well their posts were performing.

  8. Jigar Doshi says

    I would love to check-out the plugin and check for myself the total number of words I’ve written over-all.
    But, I’m not really sure I would like to show it to the whole world.
    [P.S : I would only prefer showing the total pageviews to the world :P]

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.