<?xml version="1.0" encoding="UTF-8"?>
<term>
  <id>15031</id>
  <title>Shannon–Wiener diversity index</title>
  <longtitle>IUPAC Gold Book - Shannon–Wiener diversity index</longtitle>
  <doi>10.1351/goldbook.15031</doi>
  <code>15031</code>
  <status>current</status>
  <definitions>
    <item>
      <id>1</id>
      <text>Index based on the assumption that all species are represented in the sample studied and that the sample was obtained randomly, giving the following mathematical relationship: \[H = -\sum \limits_{i=1}^S p_{i} \log p_{i}\] where \(p_{i}\) is the fraction of individuals belonging to the \(i\)-th species and \(S\) is the number of species.</text>
      <notes>
        <item>The Shannon index is affected by both the number of species and their equitability, or evenness. Both a greater number of species and a more even distribution increase diversity as measured by \(H\).</item>
        <item>The most important source of error in this index is failure of sampling to include all species from the community of interest.</item>
      </notes>
      <links>
        <item>
          <term>community</term>
          <url>https://goldbook.iupac.org//terms/view/14531</url>
        </item>
        <item>
          <term>diversity index</term>
          <url>https://goldbook.iupac.org//terms/view/14599</url>
        </item>
      </links>
      <sources>
        <item>PAC, 2009, 81, 829. 'Glossary of terms used in ecotoxicology (IUPAC Recommendations 2009)' on page 944 (https://doi.org/10.1351/PAC-REC-08-07-09)</item>
      </sources>
    </item>
  </definitions>
  <altoutputs>
    <html>https://goldbook.iupac.org/terms/view/15031/html</html>
    <json>https://goldbook.iupac.org/terms/view/15031/json</json>
    <plain>https://goldbook.iupac.org/terms/view/15031/plain</plain>
  </altoutputs>
  <citation>Citation: 'Shannon–Wiener diversity index' in IUPAC Compendium of Chemical Terminology, 5th ed. International Union of Pure and Applied Chemistry; 2025. Online version 5.0.0, 2025. 10.1351/goldbook.15031</citation>
  <license>The IUPAC Gold Book is licensed under Creative Commons Attribution-ShareAlike CC BY-SA 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/) for individual terms.</license>
  <collection>If you are interested in licensing the Gold Book for commercial use, please contact the IUPAC Executive Director at executivedirector@iupac.org .</collection>
  <disclaimer>The International Union of Pure and Applied Chemistry (IUPAC) is continuously reviewing and, where needed, updating terms in the Compendium of Chemical Terminology (the IUPAC Gold Book). Users of these terms are encouraged to include the version of a term with its use and to check regularly for updates to term definitions that you are using.</disclaimer>
  <accessed>2026-04-18T17:55:19+00:00</accessed>
</term>
