---
title: "Hedera Processes Thousands of Transactions Per Second… See How that Number is Calculated"
id: "15716"
type: "post"
slug: "hedera-processes-thousands-of-tps-see-how-that-number-is-calculated"
published_at: "2023-11-02T01:00:00+00:00"
modified_at: "2025-12-08T18:16:52+00:00"
url: "https://hedera.com/blog/hedera-processes-thousands-of-tps-see-how-that-number-is-calculated/"
markdown_url: "https://hedera.com/blog/hedera-processes-thousands-of-tps-see-how-that-number-is-calculated.md"
excerpt: "The publicly reported transaction count on Hedera does not include the intra-node gossip communication needed to reach consensus. Only transactions submitted and paid for by external parties are included in the TPS count. Read this article to learn how to..."
taxonomy_category:
  - "Uncategorized"
taxonomy_post_tag:
  - "technical"
---

[Skip to content](#content)
blog

# Hedera Processes Thousands of Transactions Per Second… See How that Number is Calculated

November 2, 2023

Ed Marquez

Head of Developer Relations

At the time of this writing (November 2nd, 2023), the [Arkhia Metrics](https://metrics.arkhia.io/)
 site shows that the Hedera mainnet is processing 2,443 transactions per second (TPS), with more than 26 billion total transactions to date. The article [Does Hedera’s TPS Include Transactions Generated by its Consensus Algorithm? Spoiler alert: NO](https://hedera.com/blog/does-hederas-tps-include-transactions-generated-by-its-consensus-algorithm)
 states that the publicly reported transaction count on Hedera does not include the intra-node gossip communication needed to reach consensus. Only transactions submitted and paid for by external parties are included in the TPS count. But, **how is that number calculated?**

For the curious minds out there, this article shows how anyone can calculate TPS on Hedera. It provides Python and JavaScript code that you can use to find the latest TPS number. The goal is to highlight how everyone can benefit from the transparency on-chain data provides.[https://chainspect.app/dashboard/tps](https://chainspect.app/dashboard/tps)

If you are interested in seeing how Hedera’s latest TPS compares to that of other Layer 1 and Layer 2 networks, see the [Chainspect TPS Dashboard](https://chainspect.app/dashboard/tps)
.

As you read the article, keep in mind the equation below. Now, let’s do some fun math!

```
TPS = Transactions in X Blocks (#) / Duration of X Blocks (seconds)
```

#### **1. Fetching the Block Data**

As explained in the [glossary of the Hedera Documentation](https://docs.hedera.com/hedera/support-and-community/glossary#block)
, a block is simply a batch of transactions. Hedera’s [hashgraph consensus algorithm](https://hedera.com/learning/hedera-hashgraph/what-is-hashgraph-consensus)
 inherently doesn’t utilize blocks. However, to enhance compatibility with Ethereum Virtual Machine (EVM) tools and systems, the notion of “virtual blocks” was integrated on Hedera with [HIP-415](https://hips.hedera.com/hip/hip-415)
. Each block on Hedera represents transactions processed in a time window of approximately 2 seconds.

The script uses the [mirror node REST API](https://hedera.com/blog/how-to-look-up-transaction-history-on-hedera-using-mirror-nodes-back-to-the-basics)
 to obtain the data for the last five blocks, providing a snapshot of roughly 10 seconds. You can modify the script to take as many blocks as you like. Here’s how to fetch the data:

Here’s a sample of the data that a query returns for a block:

```
{
  "blocks": [
    {
      "count": 3628,
      "hapi_version": "0.40.0",
      "hash": "0x307f22d2fcdfa56925ac2288a639efceb4aae005ff8c9e961ff3ce6141ed1f18c780116b98bdf7ddcdbaa0087cb2449e",
      "name": "2023-10-20T15_37_40.009866397Z.rcd.gz",
      "number": 54899144,
      "previous_hash": "0x72412103ff7a3823bebbe913a1cd0b2de0c835a936ccd26ed2a1db2a75f0119503fe0517d0bbe322e3264c340e3ac799",
      "size": 887005,
      "timestamp": {
        "from": "1697816260.009866397",
        "to": "1697816261.999298266"
      },
      "gas_used": 0,
      "logs_bloom": "0x"
    }
  ],
  "links": {
    "next": "/api/v1/blocks?limit=1&block.number=lt:54899144"
  }
}
```

You can also see detailed information about blocks from a Hedera network explorer, like [HashScan](https://hashscan.io/mainnet/blocks)
.

#### **2. Adding Up the Transactions**

Next, we need to find the total number of transactions processed over these five blocks. This is a straightforward process: loop through each block and keep a running tally of the transaction counts. Here’s the code that achieves this:

#### **3. Calculating the Duration of the Time Window**

We also need to determine the exact duration these five blocks took. Remember, while each block takes approximately 2 seconds, the actual duration might vary slightly. Keep in mind that each block also has a starting and ending timestamp.

We calculate the total duration of the time window by subtracting the starting timestamp of the oldest block from the ending timestamp of the newest block:

#### **4. Calculating TPS**

With the total number of transactions and the exact duration, it’s time for the grand reveal.

The final step is the easiest. We simply divide the total number of transactions by the duration (in seconds) to get the TPS number:

To see the fruits of your labor, just run the scripts!

- Python
  - [hedera-tps-calculator-python](https://github.com/ed-marquez/hedera-tps-calculator-python)
  - [Quickly run the Python example in your browser](https://gitpod.io/#https://github.com/ed-marquez/hedera-tps-calculator-python)

- JavaScript
  - [hedera-tps-calculator-js](https://github.com/ed-marquez/hedera-tps-calculator-js)
  - [Quickly run the JS example in your browser](https://gitpod.io/#https://github.com/ed-marquez/hedera-tps-calculator-js)

#### **5. Wrapping Up**

You learned how to easily calculate TPS on Hedera with just a few lines of code. Whether you’re tracking performance, doing research, or satisfying your curiosity, this process shows how everyone can benefit from the transparency that on-chain data provides.

Happy coding!

#### **Continue Learning**

- [Open a Testnet Account](https://portal.hedera.com/register)
- [Try Examples](https://docs.hedera.com/hedera/tutorials) and [Tutorials](https://docs.hedera.com/hedera/tutorials/more-tutorials)
- [Join the Developer Discord](https://hedera.com/discord)
- [Explore the Learning Center](https://hedera.com/learning)
- [Read the Hedera Blog](https://hedera.com/blog)

[Back to Blog](/blog)

discover

See more articles

[View All](/blog)

August 5, 2026

### Details decide. What digital asset policy did in July 2026

Halfway through 2026, the regulatory picture is coming into focus. Hedera Chief Policy Officer Nilmini Rubin and VP Global Policy Isadora Arredondo break down what moved in June across the

[Read More](https://hedera.com/blog/details-decide-what-digital-asset-policy-did-in-july-2026/)

July 17, 2026

### Deploy Multichain Dapps on Hedera in 60 Seconds with scaffold-hbar

Deploying multichain dapps on Hedera has never been easier! With just one command, you can spin up a fully functional dapp using Next.js, Hardhat or Foundry, and AI agent context…

[Read More](https://hedera.com/blog/deploy-multichain-dapps-on-hedera-in-60-seconds-with-scaffold-hbar/)

July 13, 2026

### Regulation is finding its form in summer 2026

Halfway through 2026, the regulatory picture is coming into focus. Hedera Chief Policy Officer Nilmini Rubin and VP Global Policy Isadora Arredondo break down what moved in June across the

[Read More](https://hedera.com/blog/regulation-is-finding-its-form-in-summer-2026/)

## Ready to get started?

Discover why Hedera is the trusted institutional-grade network powering the new digital economy.

[Start Building](/start-building)

[Contact](/contact)

We use cookies to deliver the best experience on our website and to analyze traffic. By continuing to use this site, you consent to our cookie policy.

Review our [Privacy Policy](/privacy)
 to understand how Hedera collects and uses information.

Accept All CookiesAccept Necessary Cookies
