# Codecov overall threshold

**URL:** <https://community.codecov.com/t/codecov-overall-threshold/1491>\
**Category:** Support\
**Created:** [June 1, 2020, 7:24am UTC](https://community.codecov.com/t/codecov-overall-threshold/1491 "2020-06-01T07:24:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FruitVodka](https://avatars.discourse-cdn.com/v4/letter/f/b9bd4f/32.png) [@FruitVodka](https://community.codecov.com/u/FruitVodka)\
**Post date:** [June 1, 2020, 7:24am UTC](https://community.codecov.com/t/codecov-overall-threshold/1491/1 "2020-06-01T07:24:59Z")

</div>

### Description

Hey, I’m using Codecov for the first time. I want to set a limit on the coverage percentage below which a PR/merge will fail (say 80%). From what I gather, Codecov is able to fail a PR if the coverage dips below the existing coverage percentage in the repository by a given delta?  
But how do I create a threshold for the overall percentage?

I did scan the docs, but couldn’t find an answer to this.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [June 1, 2020, 5:12pm UTC](https://community.codecov.com/t/codecov-overall-threshold/1491/2 "2020-06-01T17:12:46Z")

</div>

Hi @FruitVodka, you can do this by setting a coverage [target](https://docs.codecov.io/docs/commit-status#target).

As an example `codecov.yml` file:

```auto
coverage:
  status:
    project:
      default:
        target: 80%

```
