If you are talking about the tower case not one of the small-form-factor models it would fit. But, it is not immediately compatible because that HP won't come with a good enough power supply. So you would also need to have someone upgrade that for you (or do it yourself). Also some HPs come with non-standard power supplies, meaning you won't be able to upgrade the PSU. In those systems the fastest graphics card you and put in it is a 1050ti.