# Set ERC20 token supply to 1 or less?

**URL:** <https://forum.openzeppelin.com/t/set-erc20-token-supply-to-1-or-less/4007>\
**Category:** Support\
**Created:** [October 3, 2020, 8:44pm UTC](https://forum.openzeppelin.com/t/set-erc20-token-supply-to-1-or-less/4007 "2020-10-03T20:44:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![icen2345](https://avatars.discourse-cdn.com/v4/letter/i/ba9def/32.png) [@icen2345](https://forum.openzeppelin.com/u/icen2345)\
**Post date:** [October 3, 2020, 8:44pm UTC](https://forum.openzeppelin.com/t/set-erc20-token-supply-to-1-or-less/4007/1 "2020-10-03T20:44:40Z")

</div>

I have a few questions about ERC20 tokens. Can I generate a token with an initial supply of 1 or less than 1? In other words, can I mint less than 1 token?

Also, when adding a burn function, can I burn less than 1 token?

Thanks!

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [October 5, 2020, 4:55am UTC](https://forum.openzeppelin.com/t/set-erc20-token-supply-to-1-or-less/4007/2 "2020-10-05T04:55:07Z")

</div>

Hi @icen2345,

Welcome to the community 👋

Yes you can create a token with an initial supply of zero.  
An example is deploying a mintable token with no initial supply: [Create an ERC20 using Remix, without writing Solidity](https://forum.openzeppelin.com/t/create-an-erc20-using-remix-without-writing-solidity/2908)

Assuming you use decimals of 1 or more, then you can mint less than one whole token.  
See the documentation on decimals: [https://docs.openzeppelin.com/contracts/3.x/erc20#a-note-on-decimals](https://docs.openzeppelin.com/contracts/3.x/erc20#a-note-on-decimals)

If you use decimals of zero then you can only have whole integers of tokens.

Remix is great to deploy tokens to public testnets and experiment with different amounts.  
You could have a look at this simple example ERC20 token with a fixed total supply: [Deploy a simple ERC20 token in Remix](https://forum.openzeppelin.com/t/deploy-a-simple-erc20-token-in-remix/1203)

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [October 12, 2020, 1:05am UTC](https://forum.openzeppelin.com/t/set-erc20-token-supply-to-1-or-less/4007/3 "2020-10-12T01:05:59Z")

</div>

Hi @icen2345,

I just wanted to check if my reply answered your question. If so you can mark it as the solution.

Feel free to ask all the questions that you need.
