Most teams reach for more servers when a bigger one would do.
That is not a criticism, since "just add more" sounds like the cloud way. But the choice between a bigger machine and more machines changes your costs, your downtime, and the way your application has to be built. Here is the difference in plain terms, when each one wins, and a worked example of what each costs.

What is the difference between vertical and horizontal scaling?
Cloud VM capacity is not fixed, and when you run out, you have two ways to add more. Vertical scaling, or scaling up, gives one machine more CPU, RAM or storage. Horizontal scaling, or scaling out, adds more machines and spreads the traffic across them with a load balancer.

Vertical (scale up)
Horizontal (scale out)
What you do
Resize to a larger instance
Add more instances behind a load balancer
Effort
Low, with no application changes
Higher, since it needs a stateless design
Downtime
Usually a restart, taking minutes
Often none when adding instances
Limit
The biggest instance size you can buy
Very high
If a machine fails
Everything goes down
The others keep serving
Best for
Databases and stateful or legacy apps
Web and application tiers

Is there a middle path?
Yes, and most real systems end up there. Teams right-size each machine vertically, then add more of those machines horizontally. A very common pattern is to scale the application tier out while scaling the database up.

When should you scale vertically?
First, in most cases. Vertical scaling needs no application changes, no load balancer and no distributed state, and that simplicity is worth a lot.
It is the right call when:
Your application is not stateless; for example, it keeps sessions in memory or writes files locally
You run a single database and have not yet hit its CPU or connection limits
The next instance size up costs less than the engineering time to go horizontal
It has real limits. There is a ceiling on how big one machine can get; one machine is a single point of failure, and resizing usually needs a restart.
Does vertical scaling always mean downtime?
On a typical VM, plan on yes. Stopping, resizing, and starting the instance usually takes minutes. Some platforms now support resizing a running workload without a restart, which is a recent shift, but it is not something to count on for an ordinary virtual machine.
Take a snapshot first, and do the resize in a quiet window.

When should you scale horizontally?
When you need availability, elasticity or more capacity than one machine can give. If one instance fails, the rest keep serving, and you can add or remove instances as demand changes.
The catch is that your application has to cope with it. Any request must be answerable by any instance, which means:
Sessions live outside the server, for example in Redis
Files live in shared or object storage, not on the local disk
Authentication does not depend on one machine's memory
Health checks tell the load balancer when to stop sending traffic to an instance
Autoscaling can add and remove instances automatically. New instances still take time to start, so a sudden spike can outrun a purely reactive rule, and it is worth setting a maximum so that bad rules cannot trigger runaway scaling and a surprise bill.

How do databases and caches fit in?
Usually vertically first. They hold state, and distributing state is hard. The usual progression for a database is to scale up, then add read replicas, then connection pooling and caching, and only then sharding.
That is why the common architecture is a horizontally scaled application tier in front of a vertically scaled database.

How do you scale a cloud virtual machine in practice?
The steps are short for a cloud virtual machine, and they are different for each type.
Vertical:
Take a snapshot
Stop the VM
Change the instance size
Start it and check the application
Horizontal:
Build an image of a working server, or a repeatable setup script
Put instances behind a load balancer with health checks
Define scaling rules, such as a CPU target or a schedule
Set a minimum and a maximum number of instances
Test by removing an instance and watching what happens

How do the costs compare?
Vertical is cheaper to start, since it adds no new parts. Horizontal can be cheaper to run if your load varies, since you shrink back down when traffic falls, though you also pay for the load balancer and extra monitoring.
Here is an illustrative case. A service needs 16 vCPUs for eight busy hours a day and about 4 vCPUs the rest of the time.
Approach
vCPU-hours per day
Vertical: one 16 vCPU VM running all day
384
Horizontal: 4 vCPUs all day, plus 12 more for eight hours
192

On this assumption, horizontal scaling uses half the capacity. The assumptions matter, though: it requires an application that scales out, pricing that is roughly linear per vCPU, and scale-in that happens promptly. Warm-up delays and a slow scale-in rule eat into the saving.

What does a sensible growth path look like?
Here is an illustrative case. A small SaaS product starts on one VM that runs both the web app and the database. When traffic grows, the team scales up that VM, which takes a short maintenance window and no code changes.
Later, the web tier becomes the bottleneck and users expect no downtime during deploys. So the team moves sessions to Redis, uploads to object storage and puts three web instances behind a load balancer. The database stays on its own, larger VM, with a read replica added when reporting queries start to slow it down.
Nothing in that path was a rewrite. Each step was taken when a specific limit appeared.

What mistakes do people make?
The following are common mistakes to avoid:
Scaling out a stateful app, then wondering why users get logged out
Scaling up to fix a slow query that a better index would solve
Leaving autoscaling without a maximum
Running one huge VM and forgetting that it is a single point of failure
Resizing in production without a snapshot
Scaling on CPU when the real bottleneck is memory or disk

Conclusion
Start with the boring option. Scale up until it stops being cheap or safe, then scale out where your application allows it, and keep the database vertical for as long as you can. Whichever way you grow, test what happens when one machine disappears, since that single test tells you more about your scaling plan than any diagram.