# Does TypeDB support calculated properties?

**URL:** <https://forum.typedb.com/t/does-typedb-support-calculated-properties/214>\
**Category:** TypeDB\
**Tags:** schema-design\
**Created:** [15 October 2022 15:02 UTC](https://forum.typedb.com/t/does-typedb-support-calculated-properties/214 "2022-10-15T15:02:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joylix](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@Joylix](https://forum.typedb.com/u/Joylix)\
**Post date:** [15 October 2022 15:02 UTC](https://forum.typedb.com/t/does-typedb-support-calculated-properties/214/1 "2022-10-15T15:02:11Z")

</div>

Hey, team, I am just beginning to TypeDB, I want to deal with the follows：  
To say Person has Property Height (kg), Weight(cm), and BMI = Weight/Height^2,  
if BMI \>26 then Person.BodyType = “Fat”  
else if BMI \<22 then Person.BodyType = “Thin”  
else Person.BodyType = “Normal”  
So, if an instance of person (name=“Bob”, Weight=80, Height=1.85) is inserted, We can automatically get bob’s BMI and BodyType property, I don’t know if this can be done easily with TypeDB.  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![james.williams](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.typedb.com/james.williams/32/49_2.png) [@james.williams](https://forum.typedb.com/u/james.williams)\
**Post date:** [15 October 2022 15:49 UTC](https://forum.typedb.com/t/does-typedb-support-calculated-properties/214/2 "2022-10-15T15:49:52Z")

</div>

In short, TypeDB does not currently support calculated properties.

However, you could certainly use the reasoning rules to infer the body-type attribute based on the BMI with comparators, see [Match Clause | Vaticle](https://docs.vaticle.com/docs/query/match-clause#comparators). You would have to do the BMI calculation outside of TypeDB before inserting it, though.
